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

WPF autosizecolumnsmode

2 Answers 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 17 Apr 2012, 08:34 PM
I have used the winForms gridview and it has a property called mastergridviewtemplate.autosizecolumnsmode. By setting this to Fill it will stretch the column widths so they fill the width of the gridview. As you make the gridview width smaller the column widths gets smaller. 

I am just starting to use the WPF gridview and was wondering if there is anything similar to this in the WPF version.

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 18 Apr 2012, 06:48 AM
Hi,

 You can use ColumnWidth property to achieve your goal. In this particular case ColumnWidth="*".

Regards,
Vlad
the Telerik team

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

0
Dev
Top achievements
Rank 1
answered on 18 Apr 2012, 05:14 PM
Thank you for your response. It took me a minute to realize I needed to do this in the xaml of the grid view but I got it now.
Thanks again.
Tags
GridView
Asked by
Dev
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Dev
Top achievements
Rank 1
Share this question
or