Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2335
How to change Header Text Alignment
posted

Hi,

How can we change alignemnt of Header Text I tried following but bot working:

                  <igGrid:TextColumn Key="A">
                    <igGrid:TextColumn.HeaderTemplate>
                        <DataTemplate>
                            <TextBlock Text="A" HorizontalAlignment="Center"  />
                        </DataTemplate>
                    </igGrid:TextColumn.HeaderTemplate>
                </igGrid:TextColumn>


                <igGrid:TextColumn Key="B">
                    <igGrid:TextColumn.HeaderTemplate>
                        <DataTemplate>
                            <TextBlock Text="B" TextAlignment="Center"/>
                        </DataTemplate>
                    </igGrid:TextColumn.HeaderTemplate>
                </igGrid:TextColumn>

following serve the pupose but disturbes the ui of header:

    <igGrid:XamWebGrid.HeaderStyle>               
                <Style TargetType="igPrim:HeaderCellControl">
                    <Setter Property="HorizontalAlignment" Value="Center"/>
                </Style>
            </igGrid:XamWebGrid.HeaderStyle> 

Thanks