gridview

  • Thread starter Thread starter netnatter
  • Start date Start date
N

netnatter

I would like my users to select which columns in a largeish grid view are to
be visible by using a check box list

I tried making a function that returned a true or false for each field

<asp:BoundField DataField="eyes" HeaderText="eyes"
SortExpression="eye" Visible="False" />

I tried replacing the Visible="False" with Visible= <%= mytext %> but this
was not allowed

any help welcome

netnatter
 
I would like my users to select which columns in a largeish grid view are to
be visible by using a check box list

I tried making a function that returned a true or false for each field

<asp:BoundField DataField="eyes" HeaderText="eyes"
SortExpression="eye" Visible="False" />

I tried replacing the Visible="False" with Visible= <%= mytext %> but this
was not allowed

any help welcome

netnatter

Hi ...

you can try in code behind ...

GridView1.Columns[1].Visible = false;

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
 
Back
Top