Advertisements
hi friends,
I am working in grid view now and my problem is i want to display the template column dynamically.
Means if session value is 1 i want to visible that column otherwise not.
I did it in the followiing way
<asp:GridView ID="grd" runat="server" AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" DataKeyNames="ID">
<Columns>
<asp:BoundField ReadOnly="true" HeaderText="Name" DataField="Name" />
<asp:TemplateField HeaderText="Relieved On" Visible='<%#GetVisible() %>'>
<ItemTemplate>
<asp:Label ID ...
Go to the complete details ...
Found interesting? Add this to: