Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Disable Sorting in version 3.0

Sort Posts: Previous Next
  •  08-20-2008, 7:21 PM Post no. 14275

    Disable Sorting in version 3.0

    Can we disable sorting on version 3.0 data grid without tweaking the datasource?

     

     

    Filed under: ,
  •  08-21-2008, 7:51 AM Post no. 14292 in reply to 14275

    Re: Disable Sorting in version 3.0

    You can set the AllowSort property of the ColumnManagerRow to false.
    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
  •  08-21-2008, 12:56 PM Post no. 14325 in reply to 14292

    Re: Disable Sorting in version 3.0

     

    How can we use insertionrow as well as ColumnManagerRow as the following XAML code is giving me error.

     

    <xcdg:TableView UseDefaultHeadersFooters="True"
                                            ShowRowSelectorPane="True"
                                            ColumnStretchMode="All"  ShowScrollTip="True">
                                    <xcdg:TableView.FixedHeaders>
                                        <DataTemplate>
                                            <xcdg:InsertionRow/>
                                            <xcdg:ColumnManagerRow AllowColumnReorder="False"
                                                   AllowColumnResize="False"
                                                   AllowAutoFilter="False"
                                                   AllowSort="False"
                                                   AllowDrop="False" />
                                        </DataTemplate>
                                    </xcdg:TableView.FixedHeaders>
                                </xcdg:TableView>

  •  08-21-2008, 1:47 PM Post no. 14331 in reply to 14325

    Re: Disable Sorting in version 3.0

    Use 2 different DataTemplates:

     <xcdg:TableView UseDefaultHeadersFooters="True"

                                            ShowRowSelectorPane="True" 
                                            ColumnStretchMode="All"  ShowScrollTip="True">
                                    <xcdg:TableView.FixedHeaders>
                                        <DataTemplate>
                                            <xcdg:InsertionRow/>

                                        </DataTemplate>

                                        <DataTemplate>
                                            <xcdg:ColumnManagerRow AllowColumnReorder="False" 
                                                   AllowColumnResize="False" 
                                                   AllowAutoFilter="False" 
                                                   AllowSort="False"
                                                   AllowDrop="False" />
                                        </DataTemplate>
                                    </xcdg:TableView.FixedHeaders>
                                </xcdg:TableView>


    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
  •  08-25-2008, 1:25 PM Post no. 14466 in reply to 14331

    Re: Disable Sorting in version 3.0

    After using the above code I am having two header rows which is not desirable.

    Can you guide me how to disable sorting while having the insertion row and also without two header rows?

     Thanks

  •  08-25-2008, 1:58 PM Post no. 14469 in reply to 14466

    Re: Disable Sorting in version 3.0

    Set the UseDefaultHeadersFooters property to false.
    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.