Hide GridView Columns

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David C

    Hide GridView Columns

    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


  • David C

    #2
    Re: Hide GridView Columns

    Duh...I found the answer, I added gv.Columns(x).V isible = False

    David
    "David C" <dlchase@lifeti meinc.comwrote in message
    news:OFuo4zweIH A.5164@TK2MSFTN GP03.phx.gbl...
    >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
    >

    Comment

    Working...