Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit DataGrid Column adjustment
3 replies. Latest Post by Amanda Wang - MSFT on November 26, 2008.
(0)
RenukaPa...
Member
161 points
173 Posts
11-24-2008 5:38 AM |
Hai,
In a datagrid control, all the columns are aligned to left, there are more spaces on the right hand size if the size of the datagrid is large. how to make the column width adjustable based on the width of the datagrid control
Thanks
Renu
bryant
Star
9937 points
1,629 Posts
11-24-2008 10:53 AM |
You could use star sizing on the columns to scale them proportionally to the size of the grid. For an example see Jesse Liberty's post on sizing in Silverlight.
11-24-2008 12:10 PM |
Hai bryant,
Thanks for your reply,
I am asking for DataGrid control
Amanda W...
All-Star
17241 points
1,466 Posts
11-26-2008 3:55 AM |
Hi,
You can try to use HorizontalContentAlignment to adjust the datagridcell's alignment.
Try to refer this thread: http://silverlight.net/forums/t/50162.aspx