DropDownList In Datagrid!

A

Adam Knight

I have a DropDownList in the Footer of a datagrid ['dgTest'] like so:

<FooterTemplate>
<asp:DropDownList ID="cboParentId" Width="120px"
DataTextField="name" DataValueField="area_id"
Runat="server"></asp:DropDownList>
</FooterTemplate>

When i try to bind the DropDownList to a datasource i am getting null object
exception.
Ie: It doesn't appear to find the DropDownList.

Here is my code:
 

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,777
Messages
2,569,604
Members
45,219
Latest member
KristieKoh

Latest Threads

Top