' Turn off the old sort arrow
Me.GridControl1(0, yourColumnThatCurrentlyHasAnAarrow).CellType = "Header"
' Turn on new sort arrow
Me.GridControl1(0, yourColumnThatWillGetAnArrow).CellType = "ColumnHeaderCell"
Me.GridControl1(0, yourColumnThatWillGetAnArrow).Tag = ListSortDirection.Descending/Ascending
' Turn off the old sort arrow
Me.GridControl1(0, yourColumnThatCurrentlyHasAnAarrow).CellType = "Header"
' Turn on new sort arrow
Me.GridControl1(0, yourColumnThatWillGetAnArrow).CellType = "ColumnHeaderCell"
Me.GridControl1(0, yourColumnThatWillGetAnArrow).Tag = ListSortDirection.Descending/Ascending
int rowindex = -1, colindex = -1;
void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.RowIndex == rowindex && e.TableCellIdentity.ColIndex == colindex)
{
e.Style.Tag = ListSortDirection.Ascending;
}
}
void gridGroupingControl1_TableControlCellClick(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellClickEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.PointToTableCellStyle(new Point(e.Inner.X, e.Inner.Y));
if (this.gridGroupingControl1.Table.DisplayElements[style.TableCellIdentity.RowIndex].Kind == DisplayElementKind.ColumnHeader)
{
rowindex = e.Inner.RowIndex;
colindex = e.Inner.ColIndex;
}
}