Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Gridview checkbox
I have a gridview that, from within the code behind, I bind to a DataTable and programmatically populate number of rows and cell values.
When I click on a checkbox that has AutoPostBack set to true, the gridview resets. Since the events for the checkbox are executed only when its AutoPostBack is set to true, how do I maintain those values in the gridview? Can I get the checkbox events to fire when its AutoPostBack is set to false?
Posted 31-Oct-12 13:28pm

1 solution

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

Solution 1

Place gridbind function in not IsPostBack condition in page load event as follow..

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 7,448
1 OriginalGriff 5,996
2 Peter Leow 4,292
3 CHill60 2,858
4 Mika Wendelius 2,850

Advertise | Privacy | Mobile
Web03 | 2.8.150224.1 | Last Updated 1 Nov 2012
Copyright © CodeProject, 1999-2015
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