U
Uri
Hi,
I have a data-bound DropDownList embedded in a TemplateColumn inside a
data-bound DataGrid, like so:
<aspataGrid id="grdProducts" runat="server" DataSource="<%#
myPortfolio.Products %>"
AutoGenerateColumns="False" DataKeyField="Id">
<Columns>
<asp:TemplateColumn HeaderText="Vendor">
<ItemTemplate>
<aspropDownList id=ddlVendor runat="server"
DataValueField="Id" DataTextField="Name"
DataSource="<%# BL.Vendor.GetAll() %>">
</aspropDownList>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</aspataGrid>
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:
<aspataGrid id="grdProducts" runat="server" DataSource="<%#
myPortfolio.Products %>"
AutoGenerateColumns="False" DataKeyField="Id">
<Columns>
<asp:TemplateColumn HeaderText="Vendor">
<ItemTemplate>
<aspropDownList id=ddlVendor runat="server"
DataValueField="Id" DataTextField="Name"
DataSource="<%# BL.Vendor.GetAll() %>">
</aspropDownList>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</aspataGrid>
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.