Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6810343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:11:41+00:00 2026-05-26T20:11:41+00:00

I have a DataGridView with a few DataGridViewComboBoxColumn’s. The columns have their DataSource set

  • 0

I have a DataGridView with a few DataGridViewComboBoxColumn’s. The columns have their DataSource set so that they will display certain values to choose from, however the DataGridView itself does not have its DataSource set to anything. I manually load/save values from it.

The problem: When I change one of the combobox values, I am not seeing the change until I move to another row.

More background info: The primary purpose of the app is to move data from one table to another. In one column you choose the source field of a table, and in the next column you choose the destination field in another table. One feature of the app is that when you click on the row header cell, it will display a list of distinct values from the source field you’ve selected in that row. However when updating the source field, I cannot get the right results by clicking the row header cell until after I leave the row first.

The question: What is the simplest way to get my changes to take effect immediately instead of having to leave the row first? I implemented something to accomplish this for a checkbox column once but the solution I came up with doesn’t work for a combobox column. I’d like something that works for everything.

Thanks!

Edit: If you hapepen to be reading this and thinking to yourself “This is a bad question”, would you mind letting me know why? I really don’t mind if you downvote it… I would just like to understand whether the problem is something to do with this being a ‘bad SO question’, or do you think I’m asking to do something that you believe isn’t smart and is a bad practice to follow.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:11:42+00:00Added an answer on May 26, 2026 at 8:11 pm

    I infer that you want the value to be committed as soon as its selected, so maybe this might help in achieving that. subscribe to CurrentCellDirtyStateChanged and see if it does the thing which you intend.

    void dataGridView1_CurrentCellDirtyStateChanged(object sender,
        EventArgs e)
    {
        if (dataGridView1.IsCurrentCellDirty)
        {
            dataGridView1.CommitEdit(DataGridViewDataErrorContexts.Commit);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a DataGridView with its datasource set to a generic list of custom
I have few columns in my DataGridView, one of them is an unbound column
I have few columns in my DataGridView, and there is data in my rows.
I have a DataGridView whose datasource is a BindingList. MyObj has a few nullable
I have a DataSet that contains a few columns. One of these columns is
I have a DataGridView which I populate with values as soon as they are
I have a DataGridView with one DataGridViewComboBoxColumn in my WinForms application. I need to
I have a datagridview where the users can select which subset of columns to
I have a DataGridView that I want to query using Linq (C# WinForm). I
I have a DataGridView control in a winforms app that I'm working on. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.