Welcome to the Xceed Community | Help
Community Search  
More Search Options

Changing the no-group content

Sort Posts: Previous Next
  •  10-09-2008, 9:13 AM Post no. 28182

    Changing the no-group content

    The following example demonstrates how to provide an implicit style targeting the HierarchicalGroupByControl class that changes the value of the NoGroupContent property to display "Hello World" rather than "Drag a column header hear to group by that column.".

    <Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"
              xmlns:local="clr-namespace:Xceed.Wpf.Documentation">
      <Grid.Resources>
       <xcdg:DataGridCollectionViewSource x:Key="cvs_orders"
                                          Source="{Binding Source={x:Static Application.Current}, Path=Orders}"/>

       <Style TargetType="{x:Type xcdg:HierarchicalGroupByControl}">
          <Setter Property="NoGroupContent"
                  Value="Hello World" />
       </Style>
      </Grid.Resources>

      <xcdg:DataGridControl x:Name="OrdersGrid"
                          ItemsSource="{Binding Source={StaticResource cvs_orders}}"/>
     
    </Grid>

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.