Hi Shi,
One thing you could do is by disabling the default sorting and handle the CellClick event in GridDataBoundGrid to handle manual sort as shown below.
this.gridDataBoundGrid1.SortBehavior = Syncfusion.Windows.Forms.Grid.GridSortBehavior.None;
this.gridDataBoundGrid1.CellClick += new GridCellClickEventHandler(gridDataBoundGrid1_CellClick);
void gridDataBoundGrid1_CellClick(object sender, GridCellClickEventArgs e)
{
if (e.RowIndex == 0 && e.ColIndex > 0)
{
int filed = this.gridDataBoundGrid1.Binder.ColIndexToField(e.ColIndex);
string name = this.gridDataBoundGrid1.Binder.InternalColumns[filed].MappingName;
string sort= dt.DefaultView.Sort.Contains(name)? (dt.DefaultView.Sort.Contains("ASC")?"DESC":""):"ASC";
if (sort.Length > 0)
dt.DefaultView.Sort = "[" + name + "] " + sort;
else
dt.DefaultView.Sort = String.Empty;
e.Cancel = true;
this.gridDataBoundGrid1.Refresh();
}
}
Refer the sample from below link.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=I65296-1948918315.zipRegards,
Jisha