Click here to Skip to main content
14,267,930 members
Rate this:
Please Sign up or sign in to vote.
See more:
How can I hide/show the gridview columns using the context menu? I urgently require the code. I tried a lot using Jquery but the problem is yet not solved.

Thanks in advance.
Posted
Updated 7-Nov-10 22:07pm
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Hi,

you can use this :

this.dataGridView1.Columns["toto"].Visible = false;

good luck

jerem
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100