Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restrict DataGrid Columns on show

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
Is there a way in which I can set some columns in a DataGrid to be visible and some not (depending on a selection made).
Initially (using the DataSource to be a DataTable) we have all the fields on dislay in the grid - how can we set up some code to show / hide columns that we select ?

Any help would be appreciated.
I'm new to the world of C#/.NET

Thanks in advance.

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top