Unplanned
Last Updated: 17 Mar 2017 14:37 by ADMIN
ADMIN
Stefan Nenchev
Created on: 29 Oct 2015 09:20
Category: GridView
Type: Bug Report
0
GridView: ColumnGroupName Styles not applied as expected

		
2 comments
ADMIN
Stefan Nenchev
Posted on: 17 Mar 2017 14:37
Setting the HorizontalAlignment of the TextBlocks within each CommonColumnHeader in the Loaded event of the RadGridView seems to fix the issue:
  private void clubsGrid_Loaded(object sender, RoutedEventArgs e)
        {
            foreach (var columnHeader in clubsGrid.ChildrenOfType<CommonColumnHeader>())
            {
                var tb = columnHeader.ChildrenOfType<TextBlock>().FirstOrDefault();
                tb.HorizontalAlignment = HorizontalAlignment.Center;
            }
        }
ADMIN
Stefan Nenchev
Posted on: 29 Oct 2015 09:21
When trying to style the Header of the ColumnGroupName and specifically applying the "Horizontal Alignment" property to "Center" it does not act as expected.