U
Uri
Hi,
I have a data-bound DropDownList embedded in a TemplateColumn inside a
data-bound DataGrid, like so:
<asp
ataGrid id="grdProducts" runat="server" DataSource="<%#
myPortfolio.Products %>"
AutoGenerateColumns="False" DataKeyField="Id">
<Columns>
<asp:TemplateColumn HeaderText="Vendor">
<ItemTemplate>
<asp
ropDownList id=ddlVendor runat="server"
DataValueField="Id" DataTextField="Name"
DataSource="<%# BL.Vendor.GetAll() %>">
</asp
ropDownList>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp
ataGrid>
I need to programmatically access the DropDownList and set its
SelectedValue. Can anyone show me
which is the proper event to do this in and how to it?
Thank you,
Uri from Israel.
I have a data-bound DropDownList embedded in a TemplateColumn inside a
data-bound DataGrid, like so:
<asp
myPortfolio.Products %>"
AutoGenerateColumns="False" DataKeyField="Id">
<Columns>
<asp:TemplateColumn HeaderText="Vendor">
<ItemTemplate>
<asp
DataValueField="Id" DataTextField="Name"
DataSource="<%# BL.Vendor.GetAll() %>">
</asp
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp
I need to programmatically access the DropDownList and set its
SelectedValue. Can anyone show me
which is the proper event to do this in and how to it?
Thank you,
Uri from Israel.