Adding Controls Dynamically

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ALPO

    Adding Controls Dynamically

    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.
  • Dave

    #2
    Adding Controls Dynamically

    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("M yDDL")
    ddl.datasource= GetData

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

    HTH[color=blue]
    >-----Original Message-----
    >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.
    >.
    >[/color]

    Comment

    Working...