DataGridView
-
Hi, I have a DataGridView control with one column as ComboBox control. I want to raise the event "SelectedValueChanged" of combo box. How to do this. Please help. Thanks & Regards, nas
-
read an article on deploying events in C# applications over MSDN or search google. write this line in your constructor. dataGridView1.SelectedValueChanged+= then you start coding in the function made for the event handler Rocky
Hi Rocky, Thanks for reply. Actually in DataGridView we can make any Column-Type as controls (Button,ComboBox, CheckBox...). So i have selected one column of DGV as ComboBox. But this ComboBox differs from the normal ComboBox control. By coding i want to access the ComboBox control of the DGV. :confused:
-
Hi Rocky, Thanks for reply. Actually in DataGridView we can make any Column-Type as controls (Button,ComboBox, CheckBox...). So i have selected one column of DGV as ComboBox. But this ComboBox differs from the normal ComboBox control. By coding i want to access the ComboBox control of the DGV. :confused:
OK I know ur talking abt the datagridviewcombobox control right? try using the event 'CellValueChanged' on the dGV and in that you can get the column as if(e.columnIndex == yourdgvcomboboxname.ColumnIndex) { //perform you task } and c if this things works for u or not incaseif it does give this msg and full rating