Combobox in DataGridView
-
Good Morning I am having a common problem I suppose but it seems I cannot find a solution... Don't know if I am searching for the correct thing.... If you know of a place to look please let me know... In my DataGridView if I park on a new line and hit F2 (or ALT+Down) and hit enter to go to the next row... It doesn't select the value that is selected. I have to go up and down (choose another and the first selected one again) for the value in the combo to update the value in the grid. Should I update the value manually on the Combo OnLeave or something like that... Thanks for your help, Christiaan
-
Good Morning I am having a common problem I suppose but it seems I cannot find a solution... Don't know if I am searching for the correct thing.... If you know of a place to look please let me know... In my DataGridView if I park on a new line and hit F2 (or ALT+Down) and hit enter to go to the next row... It doesn't select the value that is selected. I have to go up and down (choose another and the first selected one again) for the value in the combo to update the value in the grid. Should I update the value manually on the Combo OnLeave or something like that... Thanks for your help, Christiaan
Hi, In short: yes. You can use the SelectedIndexChanged event of the combobox to get the value and then you have to write code to actually update the value in the DataTable or DataSet. Good luck, Johan
My advice is free, and you may get what you paid for.