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

format column

2 Answers 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
appdev
Top achievements
Rank 1
appdev asked on 20 Jan 2009, 04:49 PM
how do i set the style of the header separated from the cell.
like i want the header to be 150px wide and the width of the cell to be data length. thank you.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 Jan 2009, 05:51 AM
Hi Duy,

Try using  a GridTemplateColumn. So that you can style the header and data items via HeaderTemplate and ItemTemplate
Customizing with GridTemplateColumn

Shinu
0
appdev
Top achievements
Rank 1
answered on 21 Jan 2009, 11:35 AM
i'm generating the number of columns and headers dynamically on the server side. so really there's no way i can know how many column will be there.
Tags
Grid
Asked by
appdev
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
appdev
Top achievements
Rank 1
Share this question
or