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

Sorting question on GridGroupingControl

Thread ID:





41491 Mar 2,2006 08:29 PM UTC Aug 31,2006 05:26 AM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On March 2, 2006 08:29 PM UTC

Hi, I would like to load data to datatable used as by my gridgroupcontrol. The data is grouped by column 1 and I would like to it sorted in each group by column 2. After the data initialized, I do not want the user to sort the data any more. I have some problems to find a way to sort without grouping. Also, I did not get a way to disable sorting afterwards in ggroupcontrol. Thanks for the help Chris

stanleyj [Syncfusion]
Replied On March 3, 2006 10:53 AM UTC

Hi Chris, Please try setting AllowSortColumns property. this.gridGroupingControl1.TableOptions.AllowSortColumns = false; Let us know if your requirement is different. Best regards, Stanley

Irina Jouk
Replied On August 30, 2006 06:29 PM UTC

I use version of grouping control and there is no such property AllowSortColumns. Please let me know how could I disable sorting.

>Hi Chris,
>Please try setting AllowSortColumns property.
>this.gridGroupingControl1.TableOptions.AllowSortColumns = false;
>Let us know if your requirement is different.
>Best regards,

Administrator [Syncfusion]
Replied On August 31, 2006 05:26 AM UTC

Hi Irina,

This property has been added in the later 2.1 releases. If you do not wish to sort the tables in a grid, then cancel the click action in the TableControlCellClick for all table.

private void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
string CellType = e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex,e.Inner.ColIndex).CellType ;
if( CellType == "ColumnHeaderCell")
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