Home › Forums › WinForms controls › Xceed Grid for WinForms › Programmatically AND manually sorting the columns. › Reply To: Programmatically AND manually sorting the columns.
Here is an option if the GroupByRow is not displayed.
You can derive from ColumnManagerCell and ColumnManagerRow, override the OnClick, not call base, and add code so it sort the way you want.
It should look something like this :
protected override void OnClick( EventArgs e )
Column parentColumn = this.ParentColumn;
if( ( parentColumn != null ) &&
( parentColumn.CanBeSorted ) &&
( this.MouseState == ColumnManagerCellMouseState.ColumnPressed ) )
Imported from legacy forums. Posted by André (had 3465 views)