Multiple Rows in Datagrid Column Headers

Discussion in 'ASP .Net Web Controls' started by John Walker, Jun 25, 2007.

  1. John Walker

    John Walker Guest

    Hi,
    In my datagrid I'm trying to figure out how to have two rows in my column
    headers. Each column header in the first row will have two column headers
    below it. I'm including a little diagram here to try to better illustrate my
    issue... i hope the text stays lined up when i post this question. Is there
    a way to design the datagrid to have these types of headers? can it be done
    programatically?

    |---------Last Year------------|-----------This Year--------------|
    |---Profit---|---Expenses-----|-----Profit---|----Expenses------|

    Thanks,
    John
     
    John Walker, Jun 25, 2007
    #1
    1. Advertising

  2. John Walker

    marss Guest

    John Walker wrote:
    > Hi,
    > In my datagrid I'm trying to figure out how to have two rows in my column
    > headers. Each column header in the first row will have two column headers
    > below it. I'm including a little diagram here to try to better illustrate my
    > issue... i hope the text stays lined up when i post this question. Is there
    > a way to design the datagrid to have these types of headers? can it be done
    > programatically?
    >

    Hi,
    Here is implementation of merging columns in GridView header.
    http://marss.co.ua/MergingGridViewHeaderColumns.aspx
    I guess, you will find how to change it if you use DataGrid.

    Regards, Mykola
     
    marss, Jun 25, 2007
    #2
    1. Advertising

  3. John Walker

    John Walker Guest

    Thanks, that looks like what i need.

    "marss" wrote:

    >
    > John Walker wrote:
    > > Hi,
    > > In my datagrid I'm trying to figure out how to have two rows in my column
    > > headers. Each column header in the first row will have two column headers
    > > below it. I'm including a little diagram here to try to better illustrate my
    > > issue... i hope the text stays lined up when i post this question. Is there
    > > a way to design the datagrid to have these types of headers? can it be done
    > > programatically?
    > >

    > Hi,
    > Here is implementation of merging columns in GridView header.
    > http://marss.co.ua/MergingGridViewHeaderColumns.aspx
    > I guess, you will find how to change it if you use DataGrid.
    >
    > Regards, Mykola
    >
    >
     
    John Walker, Jun 25, 2007
    #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. gh0st54
    Replies:
    0
    Views:
    398
    gh0st54
    Jan 30, 2005
  2. gh0st54
    Replies:
    2
    Views:
    5,478
    Eliyahu Goldin
    Jan 31, 2005
  3. tonicvodka
    Replies:
    0
    Views:
    350
    tonicvodka
    Jan 18, 2006
  4. Replies:
    5
    Views:
    11,732
  5. tonicvodka

    Multiple sortable headers(linkbuttons) per column?

    tonicvodka, Jan 18, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    133
    tonicvodka
    Jan 18, 2006
Loading...

Share This Page