This is a migrated thread and some comments may be shown as answers.

Grid Header for multiple column

2 Answers 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paresh
Top achievements
Rank 1
Paresh asked on 28 Jan 2009, 02:58 PM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Jan 2009, 07:14 AM
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
0
Paresh
Top achievements
Rank 1
answered on 29 Jan 2009, 10:40 AM
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
Tags
Grid
Asked by
Paresh
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Paresh
Top achievements
Rank 1
Share this question
or