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.
Unfortunately, activation email could not send to your email. Please try again.

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

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?

Article ID: Published Date: Last Revised Date: Platform: Control: Product Version:
7852 07/14/2017 07/14/2017 Xamarin.Forms SfDataGrid 13.4.0.53
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.