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

[Solved] Center CheckBox in GridViewSelectColumn

1 Answer 175 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.
Kakone
Top achievements
Rank 1
Kakone asked on 15 Sep 2010, 02:45 PM
Hello,

I try to center the checkbox horizontally in the GridViewSelectColumn but there is no ContentAlignment property. How can I do this ?
There is also a TextAlignment property in the GridViewSelectColumn class. What does this property mean ? There is no Text in GridViewSelectColumn...

Cordially,
Kakone.

1 Answer, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 15 Sep 2010, 03:01 PM
Hello Kakone,

You may define a Style with TargetType - GridViewCell and apply it to the GridViewSelectColumn by its CellStyle Property. For example:

<UserControl.Resources>     
    <Style x:Key="cellStyle" TargetType="telerik:GridViewCell">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
    </Style>
</UserControl.Resources>


<telerik:GridViewSelectColumn CellStyle="{StaticResource cellStyle}" />

 

All the best,
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
Kakone
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or