Adding Controls Dynamically

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.
 
D

Dave

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top