Click to See Complete Forum and Search --> : Accessing nested elements


yoyosh
February 6th, 2008, 01:17 PM
Suppose we have the following code:


<asp:GridViewID="GridView1"runat="server"...

<Columns>

<asp:TemplateFieldHeaderText="Priority"SortExpression="Priority">



<EditItemTemplate>

<asp:DropDownListrunat="server"ID="ddListEditItemPriority">




How to access "ddListEditItemPriority" in .cs file? I would like to fill it with elements in code-behind file.

Thanks for help

TheCPUWizard
February 6th, 2008, 02:22 PM
If you actually make the code valid, then look in the designer.cs (2008) or code-behind file (2005) file you will see the actual variable declarations.

yoyosh
February 7th, 2008, 04:14 AM
I made it correctly (since it works and it was created using designer), but I still can`t see it in intellisense