L
Luis Esteban Valencia
I have a data grid control with a templated checkbox column residing in a
asp.net user control. The checkbox boolean state determines if the item is
later added or removed from another database table. The checkbox column is
not part of the db schema, but is added at run time and initialized
separately before binding the data table to the grid. A batch update is
processed via a server side method invoked from a submit button outside the
datagrid. Now that I have implemented paging, I need to halt it if any of
the check box values have changed. I can't use dataset events because I'm
binding to a dataview due to a sorting requirement. I've also looked into
using jscript arrays, but have not found an way to implement this technique.
The data in the grid can change frequently as there are filters in the form
of drop down lists - a trip to the database and subsequent postbacks are
required to limit the number of rows. I do cache the dataset for a 5 minute
duration to help performance for the re-binding needed for sorting and
paging events, but oviously can't rely on its state to check for changes.
asp.net user control. The checkbox boolean state determines if the item is
later added or removed from another database table. The checkbox column is
not part of the db schema, but is added at run time and initialized
separately before binding the data table to the grid. A batch update is
processed via a server side method invoked from a submit button outside the
datagrid. Now that I have implemented paging, I need to halt it if any of
the check box values have changed. I can't use dataset events because I'm
binding to a dataview due to a sorting requirement. I've also looked into
using jscript arrays, but have not found an way to implement this technique.
The data in the grid can change frequently as there are filters in the form
of drop down lists - a trip to the database and subsequent postbacks are
required to limit the number of rows. I do cache the dataset for a 5 minute
duration to help performance for the re-binding needed for sorting and
paging events, but oviously can't rely on its state to check for changes.