Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > DataGridView ComboBox - How to get Value after User Selection?
 

DataGridView ComboBox - How to get Value after User Selection?

I am using VC# .NET 2.0. 
In my datagridview, the only editable column in a row is a populated combobox.  A list eg. List<obj> is populating the combobox cell in each row.  When the user picks a selection, I need to capture the selected value so that I can populate a different list eg. List<result> with this value (result.rating = thisvalue). 

I am a novice to C#.  I did not see any event for cellvaluechanged.

Your kind assistance would be greatly appreciated.
AJ
ajbailey1  Friday, October 02, 2009 1:44 AM
Hi ajbailey1ï¼?br />
You can handle the EditingControlShowing event to get the underlying ComboBox control. Then  you are able to handle its SelectedIndexChanged event. Please follow this link:
http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/aef28e05-f368-4148-99ef-480d58638c8a

Regards,
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Wednesday, October 07, 2009 5:10 AM
Hi ajbailey1ï¼?br />
You can handle the EditingControlShowing event to get the underlying ComboBox control. Then  you are able to handle its SelectedIndexChanged event. Please follow this link:
http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/aef28e05-f368-4148-99ef-480d58638c8a

Regards,
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Wednesday, October 07, 2009 5:10 AM

You can use google to search for other answers

Custom Search

More Threads

• insert value to all cells in column
• TableAdapter Query Connection
• Combobox items deleted after updating datasource
• Not getting the cell value of a datagridview on CellLeave event
• ChangeCell during an event in a DataGridView
• Simple Events on ButtonColumn type on DataGrid
• Binding a typesafe collection to a DataGrid
• problem while handling dataerror
• sql query
• c# form multiThread