2X faster development
The ultimate WPF UI toolkit to boost your development speed.
The first caption summary row is selected by default when you are grouping the column in WPF DataGrid (SfDataGrid). You can clear the default selection in first row while grouping or ungrouping by overriding GridSelectionController or GridCellSelectionController based on the SelectionUnit. You can call SfDataGrid.ClearSelections (bool exceptCurrentRow) method inside ProcessOnGroupChanged override of selection controller to clear the selection while grouping and ungrouping. C# sfdatagrid.SelectionController = new GridSelectionControllerExt(this.sfdatagrid); public class GridSelectionControllerExt : GridSelectionController { public GridSelectionControllerExt(SfDataGrid grid) : base(grid) { } protected override void ProcessOnGroupChanged(GridGroupingEventArgs args) { if (this.DataGrid.SelectionMode == GridSelectionMode.None) return; this.DataGrid.ClearSelections(false); } } |
2X faster development
The ultimate WPF UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.