How to hide a column in datagrid?

Discussion in 'ASP .Net' started by ashtek@gmail.com, Apr 27, 2006.

  1. Guest

    Hi,

    I am using a datagrid with databound columns. I want to set the width
    of one of the columns to zero.
    I use the following code in the design time.

    <ASP:BOUNDCOLUMN DATAFIELD="FieldName" HEADERSTYLE-WIDTH="0"
    ITEMSTYLE-WIDTH="0">
    </ASP:BOUNDCOLUMN>

    But the column still appears when the page loads showing me the data.

    I do not want to use VISIBLE="False" because I want this column to be
    generated in the client side so that I can access it using JavaScript.

    Anyone has any clue?

    Thanks in advance,
    Ashish.
     
    , Apr 27, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jonnylbluejeans
    Replies:
    4
    Views:
    5,891
    Rick Spiewak
    Jul 24, 2003
  2. Thanh Nu
    Replies:
    2
    Views:
    977
    Thanh-Nu
    Oct 30, 2003
  3. enak

    Can't hide column in datagrid

    enak, Oct 31, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    2,001
    Sunil TG
    Oct 31, 2003
  4. Raterus
    Replies:
    1
    Views:
    1,580
    =?Utf-8?B?UmV6YSBOYWJp?=
    Feb 20, 2004
  5. Keithb
    Replies:
    2
    Views:
    1,160
Loading...

Share This Page