gridview

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
 
M

Munna

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top