Couple of questions

Sep 1, 2008 at 2:13 PM
Hi again,

 I've integrated datagrid control  in my project and I have a couple of questions:

 - How do I center the text in column header ?
 - How do I create a my style form grouping (asked that in previous post bu with no luck) ?
 - How do I center the text in a row (vertical center) ?

Thank you,
Sep 1, 2008 at 3:10 PM

 I've solved my initial problem with the column header (the content aligment), but I have a new one, I noticed that the little arrow that shows the sort direction does not show anymore.
 Here is my column header style:

<Style TargetType="toolkit:DataGridColumnHeader" BasedOn="{StaticResource {x:Type toolkit:DataGridColumnHeader}}">
        <Setter Property="Background" Value="{StaticResource LightBrush}" />
        <Setter Property="BorderBrush" Value="{StaticResource NormalBorderBrush}" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="MinHeight" Value="25" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="Padding" Value="5,0,5,0" />
            <Trigger Property="IsMouseOver" Value="true">
                <Setter Property="Background" Value="{StaticResource HoverBackgroundBrush}"/>
            <Trigger Property="IsPressed" Value="true">
                <Setter Property="Background" Value="{StaticResource PressedBrush}"/>
                <Setter Property="Margin" Value="1,1,0,0"/>
            <Trigger Property="IsEnabled" Value="false">
                <Setter Property="Foreground"
                      Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
Any ideas why is the arrow not showing ?