Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Hide columns in GridView

Reply
Thread Tools

Hide columns in GridView

 
 
DavidC
Guest
Posts: n/a
 
      02-03-2010
I want to be able to sometimes hide columns in a GridView based on conditions
(certain client types) but I'm not sure how to do it. We are using asp.net
3.5 and VS2008.

Thanks.
--
David
 
Reply With Quote
 
 
 
 
PvdG42
Guest
Posts: n/a
 
      02-03-2010

"DavidC" <> wrote in message
news:55268A3F-D670-4557-826E-...
> I want to be able to sometimes hide columns in a GridView based on
> conditions
> (certain client types) but I'm not sure how to do it. We are using
> asp.net
> 3.5 and VS2008.
>
> Thanks.
> --
> David


Read this:

http://msdn.microsoft.com/en-us/libr...w.columns.aspx

Note especially this comment:

"Although you can programmatically add column fields to the Columns
collection, it is easier to list the column fields declaratively in the
GridView control and then use the Visible property of each column field to
show or hide each column field."


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide GridView Columns David C ASP .Net 1 02-29-2008 08:37 PM
Hide a few (variable) columns in a GridView =?Utf-8?B?Um9iZXJ0IENoYXBtYW4=?= ASP .Net 3 02-15-2007 10:12 PM
Hide Columns in GridView? Phil Sandler ASP .Net 2 12-22-2006 09:54 AM
hide columns in export of gridview =?Utf-8?B?Q1NoYXJwZ3V5?= ASP .Net 0 09-07-2006 12:51 PM
HIde a column in GridView using auto-generated columns... Jason ASP .Net 3 05-08-2006 08:28 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57