Hi,
I have 2 rows in gridview with checkbox, checkbox checked data I want to insert in database.
I have created this code but here row is showing 0 so its not working
submit button click
foreach (GridViewRow row in grdv_rights.Rows)
{
CheckBox chk = (CheckBox)row.FindControl("chkSelect");
if (chk.Checked)
{
lbl_user_rights.Text = "test msg";
}
}
{
CheckBox chk = (CheckBox)row.FindControl("chkSelect");
if (chk.Checked)
{
lbl_user_rights.Text = "test msg";
}
}
please tell me the issue.
Biswa Pujarini MohapatraPosted Feb 18, 2014, 6:48 AM
//change your cell index as per your reuirement
Manikavelu VelayuthamPosted Feb 18, 2014, 6:00 AM
Is it a web or windows application ?
Is it a XAML based application ?
Based on that we can fix your issue