How to hide a column from datagrid.

Discussion in 'ASP .Net' started by =?Utf-8?B?c2l2YXJhbWFuLlM=?=, Oct 16, 2004.

  1. Hi friends,

    How to hide a column in datagrid.

    regards,
    Sivaraman.S
    =?Utf-8?B?c2l2YXJhbWFuLlM=?=, Oct 16, 2004
    #1
    1. Advertising

  2. Hi sivaraman,
    You can set visible = False
    HTH
    srini

    "sivaraman.S" wrote:

    > Hi friends,
    >
    > How to hide a column in datagrid.
    >
    > regards,
    > Sivaraman.S
    =?Utf-8?B?c3Jpbmk=?=, Oct 16, 2004
    #2
    1. Advertising

  3. =?Utf-8?B?c2l2YXJhbWFuLlM=?=

    Shiva Guest

    // C#
    DataGrid.Columns[<col idx to hide>].Visible = false;

    // Visual Basic .NET
    DataGrid.Columns(<col idx to hide>).Visible = False

    "sivaraman.S" <> wrote in message
    news:...
    Hi friends,

    How to hide a column in datagrid.

    regards,
    Sivaraman.S
    Shiva, Oct 16, 2004
    #3
  4. If you need the column value on the client, set display:none on css.

    Eliyahu

    "sivaraman.S" <> wrote in message
    news:...
    > Hi friends,
    >
    > How to hide a column in datagrid.
    >
    > regards,
    > Sivaraman.S
    Eliyahu Goldin, Oct 17, 2004
    #4
    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,867
    Rick Spiewak
    Jul 24, 2003
  2. Thanh Nu
    Replies:
    2
    Views:
    954
    Thanh-Nu
    Oct 30, 2003
  3. enak

    Can't hide column in datagrid

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

Share This Page