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

[Solved] gridview align cell content

1 Answer 139 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
neo e
Top achievements
Rank 1
neo e asked on 09 Nov 2010, 05:32 PM

hi Just wondering what's the property to align the cell content. seems like by default it's center. e.g. has one cell for the entire row and
the cell content presenter is a listbox, but the listbox is position at the center of the cell.

thanks

Kevin

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 09 Nov 2010, 05:43 PM
Hello neo e,

A possible approach here is to create a Style targeting the GridViewCell. For example:

<UserControl.Resources>
  <Style TargetType="telerik:GridViewCell">
    <Setter Property="HorizontalContentAlignment" Value="Right" />
  </Style>
</UserControl.Resources>
 

Regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
neo e
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or