Datagrid control - Dynamic columns
We have a datagrid control on a web form with 2 fixed cols. and we dynamically add a different amount of columns each time we load the page. While still in the procedure that creates these columns, we are able to manipulate the columns and add controls to the specific column we choose. (at this point grid.column.count is correct and reflects all columns, including the dynamic ones)
However, once the page is fully loaded and displayed (the grid looks great), the user is able to edit the controls in the one specific column, but upon hitting save, only the two fixed columns are recognized by the code, and the grid.column.count property is equal to 2.
How do we reference dynamic columns on a datagrid from a cmdbutton (or anywhere else) after the page has been shown?
|