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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 30, 2013, 8:34 PM EDT
Just set the SelectedIndex=0
comboBox1.SelectedIndex =0;
Regards,
Iftikar
Bineesh ViswanathRank #1,681 · 907 reputationPosted Jul 30, 2013, 9:29 PM EDT
will work the the code you gave for this control also?
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 30, 2013, 10:10 PM EDT
this.dataGridView1.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dataGridView1_EditingControlShowing);
Regards,
Iftikar