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

How to replace the description "drag a column header here to group by that column" in the grid?

Sort Posts: Previous Next
  •  05-17-2012, 5:07 PM Post no. 32119

    How to replace the description "drag a column header here to group by that column" in the grid?

    Thanks.

  •  05-17-2012, 11:04 PM Post no. 32122 in reply to 32119

    Re: How to replace the description "drag a column header here to group by that column" in the grid?

    Hi Edwin,

    You will need to set the UseDefaultHeaderFooters property to False in your view. Then you will need to re-add the GroupByControl in your FixedHeaders in your View. For example:

    XAML

    -----------

    <xcdg:DataGridControl.View>
                    <xcdg:TableflowView UseDefaultHeadersFooters="False">
                        <xcdg:TableflowView.FixedHeaders>
                            <DataTemplate>
                                <xcdg:GroupByControl NoGroupContent="Drag Here" />
                            </DataTemplate>
                        </xcdg:TableflowView.FixedHeaders>
                    </xcdg:TableflowView>
                </xcdg:DataGridControl.View>

    -----------


    Marc

    Developer in Technical Support
    Xceed - Multi-talented components - http://xceed.com
  •  05-18-2012, 9:47 AM Post no. 32124 in reply to 32122

    Re: How to replace the description "drag a column header here to group by that column" in the grid?

    Marc, Thanks for the help.

    However, the abovementioned code will remove the header of columns as well, which is not what I want.

    I searched the forum and somebody had code like this:

                FrameworkElementFactory groupByControl = new FrameworkElementFactory(typeof(HierarchicalGroupByControl));
                groupByControl.SetValue(GroupByControl.NoGroupContentProperty, "Test");
                var template = new DataTemplate();
                template.VisualTree = groupByControl;
    
             this.xceedTableflowView.FixedHeaders[0] = template;
    I don't like the idea of creating new template. Can we replace the "NoGroupContent" somehow? Can we do it in xaml?
    Or is there a better way?
    Regards,
     
  •  05-18-2012, 10:51 AM Post no. 32125 in reply to 32124

    Re: How to replace the description &quot;drag a column header here to group by that column&quot; in the grid?

    Found a way to do it in xaml:

           <Style TargetType="{x:Type xcdg:HierarchicalGroupByControl}">
                     <Setter Property="NoGroupContent" Value="{x:Static local:Res.XceedDragAndDrop}"/>
           </Style>
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.