Help with DataGrid

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top