Hi,
I have a gridview displaying in the front end showing 4-5 columns. Need to hide one of the column dynamically when the values are NULL for that column.
Please see the Gridview code:-
<div>
<asp:GridView ID="gvProducts" runat="server" BackColor="#DEBA84"
BorderColor="#DEBA84"
BorderStyle="None" BorderWidth="1px" CellPadding="3"
CellSpacing="2" AutoGenerateColumns="False" AllowPaging="True" PageSize="25" DataSourceID="SqlDataSource1" OnRowDataBound="gvProducts_RowDataBound">
<Columns>
<asp:BoundField DataField="CategoryId" SortExpression="CategoryId" HeaderText="CategoryId" Visible="false" />
...
Go to the complete details ...