Custom Header in datagrid

Discussion in 'ASP .Net' started by Roger, Jan 24, 2004.

  1. Roger

    Roger Guest

    How do I dynamically set the column header in a datagrid based on a sql
    query?
     
    Roger, Jan 24, 2004
    #1
    1. Advertising

  2. Roger

    Gerald Klein Guest

    In the itemCreated event you code for
    if(e.Item.ItemType==ListItemType.Header) {
    }

    "Roger" <> wrote in message
    news:...
    > How do I dynamically set the column header in a datagrid based on a sql
    > query?
    >
    >
     
    Gerald Klein, Jan 24, 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?c2VudGhpbA==?=

    datagrid custom headers with more than 1 row in header

    =?Utf-8?B?c2VudGhpbA==?=, Aug 8, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    3,536
    Scott Allen
    Aug 8, 2004
  2. mlt
    Replies:
    2
    Views:
    845
    Jean-Marc Bourguet
    Jan 31, 2009
  3. Atanas Marinov

    Problem creating custom header when datagrid AllowPaging=true

    Atanas Marinov, May 28, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    256
    Atanas Marinov
    May 29, 2004
  4. Henrik
    Replies:
    1
    Views:
    427
    Ken Cox [Microsoft MVP]
    Jul 6, 2006
  5. datagrid having row header and column header

    , Jul 13, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    185
Loading...

Share This Page