We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Diabling Sorting

Thread ID:





32361 Jul 28,2005 05:27 AM UTC Jul 28,2005 10:18 AM UTC WinForms 1
Tags: GridControl
Catinat Velmourougan
Asked On July 28, 2005 05:27 AM UTC

hi In a grouping grid, when a user double clicks on a column header its sorted. I want to avoid this i.e, when a user clicks on a specific col say "col1" it should not be sorted. How to do this? regards, Catinat

Administrator [Syncfusion]
Replied On July 28, 2005 10:18 AM UTC

You can use the TableControlcellClick event.
private void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
	GridTableCellStyleInfo style = e.TableControl.Model[e.Inner.RowIndex, e.Inner.ColIndex];
	if(style.TableCellIdentity.TableCellType == GridTableCellType.ColumnHeaderCell)
		if(style.TableCellIdentity.Column != null && style.TableCellIdentity.Column.Name == "Col1")
			e.Inner.Cancel = true;


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon