How to get if my gridview control's checkbox cell is checked?
Posted on 2014-12-21
Hi, I'm using VS2012.
In the row updating event, I need to see if user checked the checkbox. In the gridview, 1st column is the auto generated Edit. 4 columns to the right is my checkbox column. What index should I use, 4? (edit button is 1?) and code like this?
dt.Rows[row.DataItemIndex]["IsComplete"] = ((CheckBox)(row.Cells.Controls)).Checked;
Also, what is the Controls? What index is it referring to with 0?