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

GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

35804 Oct 10,2005 10:06 PM UTC Oct 11,2005 08:08 PM UTC WinForms 6
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 10, 2005 10:06 PM UTC

I am trying to do something similar to the productratings sample for the grid grouping control but I am trying to do everything basically thru code. I have three tables one similar to products and one similar to ratings and then I have a mapping table joining the two. How do you get the comma delimited list like the ratings display has?

Administrator [Syncfusion]
Replied On October 11, 2005 11:54 AM UTC

The RelationKind.ForeignKeyKeyWords setting is the magic that makes for the comma delimited entries. Here is a little sample with everything done from code in Form Load. http://www.syncfusion.com/Support/user/uploads/GGC_KeyWords_83d910fa.zip

Administrator [Syncfusion]
Replied On October 11, 2005 05:27 PM UTC

That is great and excellent starting point in helping me understand the gridgrouping control. The only big difference in your sample and the productratings one is they somehow have the child table enabled to select from a dropdown instead of free text.

Administrator [Syncfusion]
Replied On October 11, 2005 05:58 PM UTC

In the simple sample, the RatingsTable DataTable holds the information directly. So, when you drop the dropdown, you see exactly what comes from the RatingsTable. But in the productratings sample, the rating table actually holds foreign keys. So, there has to be another DataTable to map the keys onto display values. This is what is generating the extra dropdown.

Administrator [Syncfusion]
Replied On October 11, 2005 06:24 PM UTC

So how would you do this in code. Would you create a foreign key between the table objects or would you use a GridRelationDescriptor and if so how would you reference the child table?

Administrator [Syncfusion]
Replied On October 11, 2005 07:19 PM UTC

You can do it using another relation descriptor. http://www.syncfusion.com/Support/user/uploads/GGC_KeyWords_9674efee.zip

Administrator [Syncfusion]
Replied On October 11, 2005 08:08 PM UTC

Thanks!

CONFIRMATION

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

;