Hi Aditi,
If you want to control the selected column sorting in a grid then handle the the TableControlQueryAllowSortColumn event. This was discussed in the below forum thread.
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=44188To get the event of double click on column header, you need to subscribe the TableControlCellDoubleClick event and detect the column header. Here is a code snippet.
private void gridGroupingControl1_TableControlCellDoubleClick(object sender, GridTableControlCellClickEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex ,e.Inner.ColIndex);
if( style.TableCellIdentity.TableCellType == GridTableCellType.ColumnHeaderCell )
{
Console.WriteLine("Double Click on column header");
}
}
Best regards,
Haneef