Set headertext in datagrid programatically

Discussion in 'ASP .Net Web Controls' started by mg, May 26, 2004.

  1. mg

    mg Guest

    I create a datagrid using the Web Forms Toolbo

    The dataadapter,dataset and databind() code runs in a button eventhandler

    The headertext is determined by the column names of my SQL select statement there

    How can I change the headertext programatically in the codebehind? ... I don't want to change the preexisting code if at all possible.
     
    mg, May 26, 2004
    #1
    1. Advertising

  2. mg

    Kilic Beg Guest

    check this article
    http://www.c-sharpcorner.com/Code/2003/June/DataGridHeaderText.asp



    "mg" <> wrote in message
    news:...
    > I create a datagrid using the Web Forms Toolbox
    >
    > The dataadapter,dataset and databind() code runs in a button eventhandler
    >
    > The headertext is determined by the column names of my SQL select

    statement there.
    >
    > How can I change the headertext programatically in the codebehind? ... I

    don't want to change the preexisting code if at all possible.
     
    Kilic Beg, May 27, 2004
    #2
    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. =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?=

    Set Column Headertext

    =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?=, Feb 27, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    329
    Martin Dechev
    Feb 27, 2004
  2. =?Utf-8?B?bWc=?=

    Set headertext in datagrid programatically

    =?Utf-8?B?bWc=?=, May 26, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,343
    Alvin Bruney [MVP]
    May 27, 2004
  3. John E.
    Replies:
    4
    Views:
    4,652
    John E.
    Oct 14, 2004
  4. John Mason
    Replies:
    0
    Views:
    862
    John Mason
    Aug 20, 2006
  5. Andy

    Programatically setting a HeaderTemplate HeaderText.

    Andy, May 25, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    182
Loading...

Share This Page