Click here to Skip to main content
13,145,608 members (45,677 online)
Rate this:
 
Please Sign up or sign in to vote.
1cell in a gridview contains 3 checkboxes to pass its value to sql2005 as1,2,3 when update link click
Posted 25-Nov-12 17:44pm
Comments
@AmitGajjar 26-Nov-12 0:26am
   
ok.. so where is the issue ?

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.... :)
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web02 | 2.8.170915.1 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100