datagridview
.NET (Core and Framework)
4
Posts
3
Posters
0
Views
1
Watching
-
how can i find the checkbox is checked or not..... present inside the datagridview... send me sample coding..
-
how can i find the checkbox is checked or not..... present inside the datagridview... send me sample coding..
-
r u happy with ur reply
-
how can i find the checkbox is checked or not..... present inside the datagridview... send me sample coding..
hi Suppose you have gridview with one checkbox named CheckBox1. You can find the checkbox control using the code
protected void Button1_Click(object sender, EventArgs e)
{
foreach (GridViewRow gvRow in GridView1.Rows)
{
CheckBox ch = (CheckBox)gvRow.FindControl("CheckBox1");
Response.Write(ch.Checked.ToString());
}
}