I have a gridview inside a datalist. In this gridview I have a templatefield.
In the RowDataBound event of the child gridview, I am unable to set the templatefield visibility to true.
Does anyone know how to do this?
rsshetty.
It's always in the details.
Code:
<asp:DataList ID="dlParent" runat="server" OnItemDataBound="dlParent_ItemDataBound">
<ItemTemplate>
<asp:GridView ID="gvStudentList" runat="server" AutoGenerateColumns="false"
OnRowDataBound="gvStudentList_RowDataBound" OnRowCreated="gvStudentList_RowCreated"
BorderStyle="solid" BorderWidth="1" Font-Names="Verdana" Font-Size="smaller">
<HeaderStyle Font-Bold="True" Font-Size="X-Small" ForeColor="Black" Height="20px" HorizontalAlign="Center"/>
<RowStyle BackColor="#ffffff" HorizontalAlign="Center" BorderStyle="outset" BorderWidth="2"/>
<FooterStyle BackColor="#ffffff" />
<Columns>
<asp:TemplateField HeaderText="LNF" visible="false" ItemStyle-Width="15%">
<ItemTemplate>
<asp:Label ID="lblLNF" runat="server" visible="false"></asp:Label>
....
In the RowDataBound event of the child gridview, I am unable to set the templatefield visibility to true.
Does anyone know how to do this?
rsshetty.
It's always in the details.