Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Hide GridView Columns

Reply
Thread Tools

Hide GridView Columns

 
 
David C
Guest
Posts: n/a
 
      02-29-2008
I have a GridView that I am exporting to Excel and it works fine. However,
the 1st and last columns have Edit and Delete command links and I do not
want to export them. Is there a way to do this before I render it? Thanks.

David


 
Reply With Quote
 
 
 
 
David C
Guest
Posts: n/a
 
      02-29-2008
Duh...I found the answer, I added gv.Columns(x).Visible = False

David
"David C" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a GridView that I am exporting to Excel and it works fine. However,
>the 1st and last columns have Edit and Delete command links and I do not
>want to export them. Is there a way to do this before I render it?
>Thanks.
>
> David
>



 
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 columns in GridView DavidC ASP .Net 1 02-03-2010 03:31 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