I have a problem with datagridView1 comboBox column.
How can set the comboBox column index to Zero in formLoad event?
please help me in this topic.
Here My form
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Jul 31, 2013, 2:10 AM
this.dataGridView1.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dataGridView1_EditingControlShowing);
Regards,
Iftikar
Bineesh ViswanathPosted Jul 31, 2013, 1:29 AM
will work the the code you gave for this control also?
Iftikar HussainPosted Jul 31, 2013, 12:34 AM
Just set the SelectedIndex=0
comboBox1.SelectedIndex =0;
Regards,
Iftikar