Hi Stanley,
To make grid to be sorted by one column and then allow addition column to be sorted at user choice, you need to handle TableControlQueryAllowSortColumn event. In the event, you can cancel the default sorting and add the columns to be sorted. Here is the code for doing it,
>>>>>>
private void gridGroupingControl1_TableControlQueryAllowSortColumn(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridQueryAllowSortColumnEventArgs e)
{
e.AllowSort = false;
if (e.Column.Name != "FixedSort")
{
SortColumnDescriptorCollection columns = e.TableControl.TableDescriptor.SortedColumns;
if (columns.Contains(e.Column.Name))
{
if (columns[e.Column.Name].SortDirection == ListSortDirection.Ascending)
{
columns.Clear();
columns.Add("parentID", ListSortDirection.Descending);
columns.Add(e.Column.Name, ListSortDirection.Descending);
}
else
{
columns.Clear();
columns.Add("FixedSort", ListSortDirection.Descending);
columns.Add(e.Column.Name, ListSortDirection.Ascending );
}
}
else
{
columns.Clear();
columns.Add("FixedSort", ListSortDirection.Descending);
columns.Add(e.Column.Name, ListSortDirection.Ascending);
}
}
}
>>>>>>
and here is a sample for your reference
Sample:
http://websamples.syncfusion.com/samples/Grid.Windows/I67912/main.htmKindly take a look at the sample and let me know if this helps in resolving your issue.
Regards,
Ajish.