Dotnet Tutorials ,Codings & Examples: Data grid view multiple checkbox selection <h1 class='display-2'> Data grid view multiple checkbox selection ~ Dotnet Tutorials ,Codings & Examples</h1>

Data grid view multiple checkbox selection

this shows how to use datagrid view and check boxes , and find which check box was checked


for (int i = 0; i < dgGrid.Rows.Count; i++) { GridViewRow row = dgGrid.Rows[i]; bool isChecked = ((CheckBox)row.FindControl("chkSelect")).Checked; if (isChecked) { xSideID = dgGrid.Rows[i].Cells[1].Text; } }













0 comments :

Post a Comment