Grid Header for multiple column

3 posts, 0 answers
  1. Paresh
    Paresh avatar
    11 posts
    Member since:
    Jan 2009

    Posted 28 Jan 2009 Link to this post

    hello,
    i have one case where i need to display single header for 3 column. currently i have created it using table in HeaderTemplate and ItemTemplate. but it not looking proper means gird border not continuous and it is not according to skin.

    i need layout is like this:
    _________________________________________
    |                                  Main Header1                        |      
    -----------------------------------------------------------------
    | Sub Header1     | Sub Header1      | Sub Header1  |
    -----------------------------------------------------------------
    | Data 1               | Data 2                | Data 3             |
    -----------------------------------------------------------------
    | Data 1               | Data 2                | Data 3             |
    -----------------------------------------------------------------

    this is in one single Template column. "Main Header" and "sub Headers" are created in Header template using table.
    and there are some other simple column in grid.

    can anybody suggest better suggestion.
    thanks
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Jan 2009 Link to this post

    Hi Paresh,

    Hope you have already created the needed layout as shown above using GridTemplateColumn. Set the background color of the table cells according to the skin. Also set the table borders to zero where a mismatch between GridLines and Table border occurs.

    Shinu
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Paresh
    Paresh avatar
    11 posts
    Member since:
    Jan 2009

    Posted 29 Jan 2009 Link to this post

    hi...
    i also have tried that. but you can create layout without broken lines. for that i need to set cellpaddin and spacing of grid to 0 and it will spoil the layout of all other column.
    i created the perfect look handling the render method in Itemcreated
Back to Top