DataGrid Template question

A

Ashish

i had posted a related question earlier, i think this should be simple,
how can i get hold of a dropdownlist which is emmbedded in a
HeaderTemplate of a DataGrid.
The code is somehat time


<asp:datagrid id="DataGrid1" runat="server">
<Columns><asp:TemplateColumn>
<HeaderTemplate>
<asp:DropDownList id="Dropdownlist1" Runat="server" DataSource='<%#
NextLevel %>' DataValueField="id" DataTextField="Name">
</asp:DropDownList>
</HeaderTemplate>
<ItemTemplate>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>

how can i access the DropDownList1 from code behind ?

many thanks

-ashish
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top