Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to get gridview selected checkbox save on button click event
Posted

1 solution

you have to write the code in button click event like following

C#
foreach (GridViewRow row in grvPatient.Rows)
{
      CheckBox chk = (CheckBox)row.FindControl("checkboxid");
      if (chk.Checked)
      {
             your code here
      }
}
 
Share this answer
 

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