Get SelectedIndex of DataGridViewComboboxColumn
Hi Experts..I want to know How to get SelectedIndex of DataGridViewComboboxColumn....Please help me..Thanks in advance
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.
Jiteendra SampathiraoPosted Jul 20, 2011, 6:47 AM
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..........