D
dotnetbuddy
Hi,
Iam using VS 2003 for development. In ItemDataBound event of a
datagrid I want to know whether a particular column is being displayed
or not. Depending on certain criteria Iam hiding columns in Page_Load
like
grdMyGridColumns[4].Visible =false;
grdMyGridColumns[6].Visible =false;
Then during runtime Iam doing some bussiness logic in ItemDataBound,
I need to know whether a particular column is visible or not.
I tried the following but of no use:
e.Item.Cells[4].Visible, because it is returning true
irrespective of whether the column is being displayed or not.
Thanking you in advance.
Iam using VS 2003 for development. In ItemDataBound event of a
datagrid I want to know whether a particular column is being displayed
or not. Depending on certain criteria Iam hiding columns in Page_Load
like
grdMyGridColumns[4].Visible =false;
grdMyGridColumns[6].Visible =false;
Then during runtime Iam doing some bussiness logic in ItemDataBound,
I need to know whether a particular column is visible or not.
I tried the following but of no use:
e.Item.Cells[4].Visible, because it is returning true
irrespective of whether the column is being displayed or not.
Thanking you in advance.