We have a datadriven website in C# being built in VS 2010. How do I prevent certain columns in a table from being displayed on the webpage ?
Asked
Active
Viewed 81 times
0

Brian Tompsett - 汤莱恩
- 5,753
- 72
- 57
- 129

Vaishali Bulusu
- 151
- 2
- 5
- 10
-
Are you using GridView to display data? – Yuriy Galanter Jul 10 '13 at 21:24
-
Please check the following question: http://stackoverflow.com/questions/25653/hide-a-column-in-asp-net-dynamic-data – Garrison Neely Jul 10 '13 at 21:44
-
thanks, Garrison. This post referred to solved the problem – Vaishali Bulusu Jul 11 '13 at 17:37
1 Answers
0
I think you should not display the table itself, display views. This usually makes for a better design.
You can show or hide columns in views as you wish.

Renan Ranelli
- 414
- 2
- 10