Adding Controls Dynamically

  • Thread starter Thread starter ALPO
  • Start date Start date
A

ALPO

Is it possible to add/change controls of item in the
datagrid? For instance when the ItemCreated event fires
for the last item (not footer or header), add a
dropdownlst that I can bind to a dataset.
 
I would add the dropdown list named MyDDL to a templated
column then on the edit command do something like (for
column 5)

ddl = e.item.cells(5).findcontrol("MyDDL")
ddl.datasource=GetData

aspnet.4guysfromrolla has a series of articles called "an
extensive examination of the data grid" and they go into
all of that stuff.

HTH
 
Back
Top