Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
1cell in a gridview contains 3 checkboxes to pass its value to sql2005 as1,2,3 when update link click
Posted
Comments
AmitGajjar 26-Nov-12 0:26am    
ok.. so where is the issue ?

1 solution

Updating link is used to update a Particular row in emp table using Gridview.
Double click on RowUpdating Event and write below code

protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
GridViewRow row = (GridViewRow)GridView1.Rows[e.RowIndex];
CheckBox chk1 = (CheckBox)row.FindControl("chk1");
CheckBox chk2 = (CheckBox)row.FindControl("chk2");
CheckBox chk3 = (CheckBox)row.FindControl("chk3");

//Now you can send chk1.checked,chk2.checked,chk3.checked as parameter

}


Hope this will solve your problem.... :)
 
Share this answer
 
Comments
Member 9630032 26-Nov-12 22:48pm    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900