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

Column resize when scolling

5 Answers 85 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 16 Dec 2011, 11:44 AM
Hello Telerik,
I've got a RadGridView that has some columns... when I scroll down the grid and there's a column content that doesn't fit the column width it enlarges the column to content's size... if I'm not wrong there is a property for setting not to enlarge... but I can't find it, can you please help me?

Thanks

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Dec 2011, 11:56 AM
Hello,

 You will need to set Width in pixels to achieve your goal. 

Regards,
Vlad
the Telerik team

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

0
Michele
Top achievements
Rank 2
answered on 16 Dec 2011, 11:58 AM
So there's not a property of GridView to say "don't expand the columns"?
0
Vlad
Telerik team
answered on 16 Dec 2011, 11:59 AM
Hi,

The default width for grid columns is "Auto" - width will be dependent on cells content. 

Kind regards,
Vlad
the Telerik team

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

0
Michele
Top achievements
Rank 2
answered on 16 Dec 2011, 12:12 PM
OK but is it at single column level or at RadGridView level?
0
Accepted
Vlad
Telerik team
answered on 16 Dec 2011, 12:15 PM
Hi,

 I strongly suggest you to read our documentation before asking on our forums!

You have property for all grid columns (ColumnWidth) and Width property for every column.

Kind regards,
Vlad
the Telerik team

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

Tags
GridView
Asked by
Michele
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Michele
Top achievements
Rank 2
Share this question
or