Using version 22.214.171.124, when I set the AllowSelection property of a GDBG to Cell the grid no longer supports sorting. That is, clicking on the column header does not result in the grid being sorted by that column (SortBehavior is set to SingleClick). Setting AllowSelection to None (or All, haven't tried all combinations) fixes this issue. Is this by design?
ADAdministrator Syncfusion Team March 26, 2003 05:03 PM
I'll have to ask Stefan whether this is by design.
Allowing Columns setting also makes things work.
If you really want a particular set of settings that disables the Sorting, you can always handle gridDataBoundGrid1_Click or gridDataBoundGrid1_CellClick, and explicitly call the SortColumn method.
private void gridDataBoundGrid1_Click(object sender, System.EventArgs e)
int row, col;
this.gridDataBoundGrid1.PointToRowCol(this.gridDataBoundGrid1.PointToClient(Control.MousePosition), out row, out col);
if(row == 0 && col >0)