BoldSignA modern eSignature application with affordable pricing.
Sign up today for unlimited document usage!
How can I group a column in the actual order without sorting the data in SfDataGrid?
I can find article regarding the same Xamarin.Forms https://www.syncfusion.com/kb/7852/how-to-group-a-column-in-the-actual-order-without-sorting-the-data-in-sfdatagrid but I cannot get it to work for WinUI.
Your requirement to “Group a column in the actual order without sorting the
data” will be achievable by removing the grouped columns from the SortDescriptions
this.sfDataGrid.Loaded += OnSfDataGridLoaded;
OnSfDataGridLoaded(object sender, RoutedEventArgs e)
private void OnCurrentVoewChanged(object sender, object e)
// Get the
= sfDataGrid.View.SortDescriptions.FirstOrDefault(x => x.PropertyName == "CustomerID");
// Remove the
grouped column from the SortDescriptions
(sfDataGrid.SortColumnDescriptions.FirstOrDefault(x => x.ColumnName == "CustomerID") != null)
Here we have prepared the sample for your reference, please
have a look at this.
If this post is helpful, please consider Accepting it as the
solution so that other members can locate it more quickly.