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

ColumnWidth star for only some columns

2 Answers 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hennie
Top achievements
Rank 1
Hennie asked on 03 May 2012, 06:27 AM
How do I set only one or some columns to be star sized?
Typically I'd do it only for the last column, but sometimes there would be multiple columns and I would like to for example specify a star ratio (e.g.3* or 2*) to some of the columns.

Setting GridView.ColumnWidth = "*" doesn't help because it star sizes ALL the columns.

Please help,
Jaans

2 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 03 May 2012, 08:01 AM
Hello Hennie,

 

Please take a look at this help article for a reference. You can use GridViewDataColumn Width property in order to set different width of the columns.

Regards,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Hennie
Top achievements
Rank 1
answered on 03 May 2012, 11:30 AM
Hi Vera

I didn't realise I can set the individual column width = "*" - for some reason the edit gave me a red underline before, but now it doesn't.

Thanks for your help,
Jaans
Tags
GridView
Asked by
Hennie
Top achievements
Rank 1
Answers by
Vera
Telerik team
Hennie
Top achievements
Rank 1
Share this question
or