Dgrid control states in DataGrid
Hi,
I'm having a bit of a problem with datagrid binding, mixing design time columns and adding runtime template columns at runtime consisting of checkbox controls in asp.net 1.1
I add the resulting grid (design and runtime columns) to the session before displaying it to the user
if I dont add the grid to the session, then it only picks up the design tie columns when I reference it..
similarly, the grid only saves the state of controls that were added in a designtime template column
now my problem is this, I want the user to be able to manupilate the checkbox controls of the runtime added columns but how do I save the state of these controls?
I cannot use post back to register the clicking because the checkboxes are many and all names are uniquely generated at runtime for each column and are repeated rowise
as soon as the user clicks 'save' button after manupilation , at the back end I get the grid from the session which doesnt have any information about the new state of the controls and thus the state is not saved... on the other hand if I dont add the grid to the session and retrieve it later and instead reference the object directly, then I dont get any of the columns which I add at tuntime...
any ideas?
|