datagrid custom headers with more than 1 row in header

Discussion in 'ASP .Net' started by =?Utf-8?B?c2VudGhpbA==?=, Aug 8, 2004.

  1. i would like to create a datagrid which has custom table headers.
    i want to have more than one row in the header. what should i do?

    example

    ---------------------------------
    | total hours |
    service| ------------------------
    | 1 | 2 | 3 | 4 | 5 |
    ----------------------------------
    | |
    | |
    | |

    Thanks,
    Senthil
    =?Utf-8?B?c2VudGhpbA==?=, Aug 8, 2004
    #1
    1. Advertising

  2. =?Utf-8?B?c2VudGhpbA==?=

    Teemu Keiski Guest

    Hi,

    you could use TemplateColumn (HeaderTemplate) for a simple solution but if
    you need to add it programmatically or TemplateColumn isn't good enough,
    ideas presented in this article might be useful:

    Extending DataGrid in ASP.NET
    http://www.extremeexperts.com/Net/Articles/ExtendingDataGrid.aspx


    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist
    http://blogs.aspadvice.com/joteke




    "senthil" <> wrote in message
    news:...
    > i would like to create a datagrid which has custom table headers.
    > i want to have more than one row in the header. what should i do?
    >
    > example
    >
    > ---------------------------------
    > | total hours |
    > service| ------------------------
    > | 1 | 2 | 3 | 4 | 5 |
    > ----------------------------------
    > | |
    > | |
    > | |
    >
    > Thanks,
    > Senthil
    Teemu Keiski, Aug 8, 2004
    #2
    1. Advertising

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

    Scott Allen Guest

    Take a look at hooking the ItemCreated event of the grid and adding an
    additional control.

    Teemu's article link should get you started.

    --
    Scott
    http://www.OdeToCode.com

    On Sun, 8 Aug 2004 05:37:01 -0700, "senthil"
    <> wrote:

    >i would like to create a datagrid which has custom table headers.
    >i want to have more than one row in the header. what should i do?
    >
    >example
    >
    >---------------------------------
    > | total hours |
    >service| ------------------------
    > | 1 | 2 | 3 | 4 | 5 |
    >----------------------------------
    >| |
    >| |
    >| |
    >
    >Thanks,
    >Senthil
    Scott Allen, Aug 8, 2004
    #3
    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?TWljaGFsIEphbnVzemN6eWs=?=

    dataGrid with columns (more than 1 el. in a row)

    =?Utf-8?B?TWljaGFsIEphbnVzemN6eWs=?=, Feb 25, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    316
    =?Utf-8?B?TWljaGFsIEphbnVzemN6eWs=?=
    Feb 25, 2004
  2. Charleees

    DELETE MORE THAN ONE ROW OF DATAGRID

    Charleees, Jun 16, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    488
  3. datagrid having row header and column header

    , Jul 13, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    159
  4. Steven D'Aprano
    Replies:
    0
    Views:
    65
    Steven D'Aprano
    Dec 23, 2013
  5. Replies:
    3
    Views:
    62
    Gary Herron
    Dec 23, 2013
Loading...

Share This Page