Loading ...

Uncheck the checkbox list items on event in gridview

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  web forms / data controls   » Uncheck the checkbox list items on event in gridview

Uncheck the checkbox list items on event in gridview

Posts under the topic: Uncheck the checkbox list items on event in gridview

Posted: 9/21/2011

Lurker 10  points  Lurker
  • Joined on: 9/19/2011
  • Posts: 2

I have an image button as item template in all the rows of a gridview. A popup (with checkboxlist items, update and cancel button)will be displayed on clicking the image button. Say there are 4 rows in the gridview . For first row I click on the image button and I get a popup,  I select few items from checkboxlist and hit update button. The values get updated. Now the problem is when I click on the image button in the second row the checkbox selections made in the previous row is not cleared. How to get rid of this problem? ? For each row I want the checkbox selection to be unique. That is : For the first row whichever item I selected, should be checked still. But for the other rows it should not reflect. Hope you understand.


Posted: 12/16/2011

Lurker 65  points  Lurker
  • Joined on: 12/16/2011
  • Posts: 9

I believe the answer lies on how you populate your checkboxes. You might want to traverse on the checkboxes and uncheck them on the onclick event of the button. Could you post your code fragments?


Page 1 of 1 (2 items)