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.

Drag Columns Header GGC

Thread ID:





46766 Jul 20,2006 03:42 AM Jul 20,2006 10:26 AM Windows Forms 5
Tags: GridControl
Administrator [Syncfusion]
Asked On July 20, 2006 03:42 AM

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 04:06 AM

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 06:57 AM

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 08:57 AM


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 09:35 AM

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


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.

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.