Get SelectedIndex of DataGridViewComboboxColumn
Hi Experts..I want to know How to get SelectedIndex of DataGridViewComboboxColumn....Please help me..Thanks in advance
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jul 20, 2011, 2:47 AM EDT
foreach (GridViewRow gvrow in gviewID.Rows)
{
Combbox cmbbox = (Combobox)gvrow.Cells[0].FindControl("cmbboxID");
if (cmbbox .Checked && cmbbox != null)
{
//your code goes here
}
}
hope it help you..........