gridview findcontrol in footer problem
- by harold-sota
I have a asp.net grid view with the property ShowFooter="True"
and a item template as
<FooterTemplate>
<asp:DropDownList ID="Contetnt1InsertDropDownList" Width="100%" runat="server" DataSource="<%# GetValueForDropDownCombinationContent() %>"
DataValueField="LOOKUP_ID" DataTextField="LOOKUP_NAME" >
</asp:DropDownList>
</FooterTemplate>
in the code behind :
Dim ddl As DropDownList = DirectCast(combinationViewGridView.FooterRow.FindControl("Loocup1InsertDropDownList"), DropDownList)
in a RowCommand event
the cast return a null value.
Any ideas??