D
Davey P
I have a datagrid and am populating it with template columns dynamically at
runtime. I have created a class that inherits ITemplate and populates the
cells with a Drop Down List in the InstantiateIn() method. I don't have an
edit mode, basically any of the selections in drop down lists can be changed
at any time. This leaves me with the problem that on every post back I need
to save EVERY ddl's data back to my bound datatable. I placed a method in
page load to loop through all my datagrid items and save them back to my
datatable, but when my method is triggered, the column count for my datagrid
reads 0. I guess its something to do with dynamically adding columns, but am
unsure as to how to go about fixing it. Any help would be greatly appreciated.
runtime. I have created a class that inherits ITemplate and populates the
cells with a Drop Down List in the InstantiateIn() method. I don't have an
edit mode, basically any of the selections in drop down lists can be changed
at any time. This leaves me with the problem that on every post back I need
to save EVERY ddl's data back to my bound datatable. I placed a method in
page load to loop through all my datagrid items and save them back to my
datatable, but when my method is triggered, the column count for my datagrid
reads 0. I guess its something to do with dynamically adding columns, but am
unsure as to how to go about fixing it. Any help would be greatly appreciated.