BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void gridControl1_CellClick(object sender, GridCellClickEventArgs e)
{
//use this code to try to handle column selections with ListBoxSelectionMode set
if(e.ColIndex > 0 && e.RowIndex == 0)
{
this.gridControl1.Selections.Add(GridRangeInfo.Col(e.ColIndex));
}
}
Now if you want to drag a column without first selecting it, check out this forum thread. It contains a sample. (You still will have to decide when a click is for moving the column or for sorting if you want to try to sort on a single click).
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=9676
if(this.Cursor.Equals(Cursors.Arrow))
{
//existing if statement
}
base.OnMouseMove(e);