We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to group a column in the actual order without sorting the data in SfDataGrid?

Platform: Xamarin.Forms |
Control: SfDataGrid |
Published Date: July 14, 2017 |
Last Revised Date: July 14, 2017 |
Product Version: 13.4.0.53
Tags: grouping

By default, SfDataGrid groups a column in the sorted order. However, you can group a column in the actual order without sorting the groups in SfDataGrid by removing the grouped column from the SfDataGrid.View.SortDescriptions in the SfDataGrid.GridViewCreated event.                

Please refer the below code example to group a column in the actual order without sorting.

MainPage.cs

 

Screenshot:

C:\Users\pavithra.sivakumar\AppData\Local\Microsoft\Windows\INetCache\Content.Word\Screenshot_2017-07-08-23-05-30.png

 

Note: In case, if you are applying grouping in runtime, then you have to apply the same logic of removing the grouped column from SfDataGrid.View.SortDescriptions after applying grouping to achieve this requirement.

 

Sample Link: How to group a column in the actual order without sorting the data in SfDataGrid?

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon