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

CheckBoxColumn can not on the left !!!

2 Answers 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kingsley
Top achievements
Rank 1
Kingsley asked on 20 May 2011, 05:09 AM
Hi admin,

I can not set CheckBoxColumn with alignment = "center". Please help me.

<telerik:GridViewCheckBoxColumn UniqueName="PostDetail" DataMemberBinding="{Binding PostDetail, Mode=TwoWay}" Header="Post Details" HeaderTextAlignment="Center" TextAlignment="Center"/>

Attached image are shown on the left side position !!!

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 20 May 2011, 07:13 AM
Hi,

 Here is an example how to achieve your goal:
                <telerik:GridViewCheckBoxColumn ....>
                    <telerik:GridViewCheckBoxColumn.CellStyle>
                        <Style TargetType="telerik:GridViewCell">
                            <Setter Property="HorizontalContentAlignment" Value="Center"/>
                        </Style>
                    </telerik:GridViewCheckBoxColumn.CellStyle>

                </telerik:GridViewCheckBoxColumn>

Kind regards,
Vlad
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
0
Kingsley
Top achievements
Rank 1
answered on 20 May 2011, 07:47 AM
Hi admin,

The example is useful. Thanks!
Tags
GridView
Asked by
Kingsley
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Kingsley
Top achievements
Rank 1
Share this question
or