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

Drag Columns Header GGC

Thread ID:





46766 Jul 20,2006 07:42 AM UTC Jul 20,2006 02:26 PM UTC WinForms 5
Tags: GridControl
Administrator [Syncfusion]
Asked On July 20, 2006 07:42 AM UTC

Hi together,

I have got a GridGroupingControl which is bound to a dataset (with multiple tables). Now I want to enable the option to drag a column header with the mouse and move it to another position (so swaping the columns). How can I enable this in a gridgrouping control?

Administrator [Syncfusion]
Replied On July 20, 2006 08:06 AM UTC

I forgot to add a sample. I found this GGC sample with multiple tables here in the forum - so I hope it''s ok to use it for my problem.

The gridgrouping control is bound to a dataset with 4 tables. I want to set the option:

GridTable actTable = gridGroupingControl1.GetTable(actDef.ToString());
actTable.TableOptions.AllowDragColumns = true;
actTable.TableOptions.AllowSortColumns = false;

for each table. But I am not able to switch the columns. Any ideas?


Administrator [Syncfusion]
Replied On July 20, 2006 10:57 AM UTC

Hi Torsten,

There are some new features added to the grouping engine, for the implementation of strong-typed nested collections support with RelationKind.UniformChildList relation. Please refer to the link below for more information on this. In the link below check for Essential Grouping, to know about the new features added.


In the latest version, there has been a bug report filed on "With the UniformChildList relation kind; an update to the list of children is not reflected".


To get this working properly as desired, please set the below piece of code.
this.gridGroupingControl1.Engine.UseOldUniformChildListRelation = true;

The new design is implemented such that it is backward compatible. By setting the Engine.UseOldUniformChildListRelation to true, you can get the old behavior.


Administrator [Syncfusion]
Replied On July 20, 2006 12:57 PM UTC


I don''t really understand if this new feature helps me with my problem? I want to switch columns (from my nested tables) with the mouse?


Administrator [Syncfusion]
Replied On July 20, 2006 01:35 PM UTC

Hi Torsten,

Please check the modified sample attached that works fine. To move columns by clicking on the column header, you need to select the column and then mouse down on the selected column header and then drag them.

Here is the modified sample

Let me know if you need any further assistance.

Administrator [Syncfusion]
Replied On July 20, 2006 02:26 PM UTC


it works! Thank you very much. Now I understand your previous post.


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

or the page will be automatically redirected to 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