I have a template column with a dropdown control (in a datagrid).
I have AutoPostBack set to TRUE because I need to update a file when a selection has changed.
My question:
How to retrieve the selected value when posted back in the code behind? not knowing witch DDL was changed.
Here is the template code if it can help.
Thanks,
<asp:TemplateColumn>
<ItemTemplate>
<aspropDownList AutoPostBack=True id=DropDownList1 runat="server" SelectedIndex='<%# GetSelIndex(Container.DataItem("id")) %>' DataSource="<%#
GetUserType() %>" DataTextField="value" DataValueField="id">
</aspropDownList>
</ItemTemplate>
</asp:TemplateColumn>


ropDownList AutoPostBack=True id=DropDownList1 runat="server" SelectedIndex='<%# GetSelIndex(Container.DataItem("id")) %>' DataSource="<%#
Reply With Quote