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

Removing the "Drag a column header here to group by that column"

Sort Posts: Previous Next
  •  01-14-2011, 10:03 AM Post no. 29605

    Removing the "Drag a column header here to group by that column"

    Hi,

    I am trying to remove this title from the Datagrid but I cannot find which property is used for this. I did a search in the entire solution for that string but I couldn't find anything.

    Help please.

    Filed under: , ,
  •  01-14-2011, 2:21 PM Post no. 29607 in reply to 29605

    Re: Removing the "Drag a column header here to group by that column"

    Hi Samuel,

    We provide 2 properties in the GroupByControl class:

    1) Title: Which represents the text to display when there is at least one group.

    2) NoGroupTitle: Which represents the text to display when there is no grouping.

    In XAML, you must do the folowing in order to change the text:

    <sldg:DataGridControl UseDefaultHeadersFooters="False">
      <sldg:DataGridControl.FixedHeaders>
        <sldg:GroupByControl
          NoGroupTitle="The text to display when there is no group."
          Title="The text to display when there is at least one group." />
      </sldg:DataGridControl.FixedHeaders>

      ...
    </sldg:DataGridControl>


    Please note that by putting UseDefaultHeadersFooters="False" in order to manually add and configure the GroupByControl, we also remove the ColumnManagerRow that was added by default.

    To make the ColumnManagerRow reappear, our FixedHeader becomes:

    <sldg:DataGridControl.FixedHeaders>
      <sldg:GroupByControl
          NoGroupTitle="The text to display when there is no group."
          Title="The text to display when there is at least one group." />
      <sldg:ColumnManagerRow />
    </sldg:DataGridControl.FixedHeaders>


    Regards,

    Alain Jreij,

    Web Developer,

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