nice_candy 0 Newbie Poster

hi,

i m using the gridview control to show the my data on the detail view control. i have an edit link on each record in the grid view.when the user click the edit button it displays the record detail in the detail view control. now i want to add update functionality in to my detail view control so that user can update particular record. i am using template field in the detail view control as given below.

<asp:TemplateField HeaderText="User Status">
<EditItemTemplate>
<asp:DropDownList ID="ddl_editstatus" runat="server" EnableViewState="true"> </asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="addressLabel4" runat="server" Text='<%# Bind("status") %>'></asp:Label>
</ItemTemplate>

</asp:TemplateField>

the problem is that i cann't access my dropdown list i.e ddl_editstatus in my code behind file to specify its datasource.

plz help me how can i access my dropdown list in the code behind file so that i can specify its datasource and populate it with datavalues.

Thank and best regards,
Nice Candy