Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
12-08-2005, 03:03 PM #1
- Join Date
- Jun 2002
- Thanked 0 Times in 0 Posts
how to get the value checkbox from datagrid
I have one datagrid in which i am using templatecolumn and added a checkbox control.
now onsubmit i want that value
What is the way to get that value???
what I am tried is which is not working:
private void Button1_Click(object sender, System.EventArgs e)
foreach( DataGridItem di in Grid1.Items )
if (((CheckBox) di.FindControl("chkBx")).Checked)
Label1.Text += ((CheckBox) di.FindControl("chkBx")).Text;