C
Chris Kettenbach
Good Morning,
Quick question, I have an EditItemTemplate inside a datagrid. It should
contain a drop down list of possible choices. I have an EditCommandColumn.
The drop dow list column should initially contain the value of the field.
This works fine with
<ItemTemplate><%# Container.DataItem("NameType")%></ItemTemplate>
The desired effect is for the drop down list to databind to a query to show
possible choices when the user clicks the edit link. I can not get a
reference to the drop down list when the user clicks edit. Does anyone know
how to do this?
I tried page.findcontrol("controlname") and it does not work. Any ideas? I
get a NullReference Error when I do this, because I guess the control does
not exist on the page.
Thanks to everyone,
Chris
Quick question, I have an EditItemTemplate inside a datagrid. It should
contain a drop down list of possible choices. I have an EditCommandColumn.
The drop dow list column should initially contain the value of the field.
This works fine with
<ItemTemplate><%# Container.DataItem("NameType")%></ItemTemplate>
The desired effect is for the drop down list to databind to a query to show
possible choices when the user clicks the edit link. I can not get a
reference to the drop down list when the user clicks edit. Does anyone know
how to do this?
I tried page.findcontrol("controlname") and it does not work. Any ideas? I
get a NullReference Error when I do this, because I guess the control does
not exist on the page.
Thanks to everyone,
Chris