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.
Unfortunately, activation email could not send to your email. Please try again.

Sorting question on GridGroupingControl

Thread ID:





41491 Mar 2,2006 03:29 PM Aug 31,2006 01:26 AM Windows Forms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On March 2, 2006 03:29 PM

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 05:53 AM

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 02:29 PM

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 01:26 AM

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.

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.