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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Specifying new datasource for GridGroupingControl

Thread ID:





13600 May 4,2004 03:59 AM UTC May 5,2004 02:35 PM UTC WinForms 4
Tags: Grouping
Lance Koh
Asked On May 4, 2004 03:59 AM UTC

i will give a brief description on my scenario. i have a dataset, containing 2 datatables. there is a relation binding the 2 tables. the gridgroupingcontrol.datasource is assigned to the dataset. i was able to get the view i want during the first datasource specification. however, when i assign the control to another dataset, i was given the error message saying that the relationship contain error. i figured that the error could be caused by the control attempting to draw the previous dataset when a new dataset is assigned to it. thus the relation failed. i was wondering how should i get around this situation. thanks and regards.

Administrator [Syncfusion]
Replied On May 4, 2004 06:58 PM UTC

You can try resetting the relations. You could also reset the DataMember. this.gridGroupingControl1.TableDescriptor.ResetRelations(); this.gridGroupingControl1.DataSource = newDataSource; this.gridGroupingControl1.DataMember = ""; //or whatever else is appropriate

Lance Koh
Replied On May 5, 2004 02:45 AM UTC

i tried, but nope, it did not work. and i am still facing the same problem...

Administrator [Syncfusion]
Replied On May 5, 2004 05:18 AM UTC

Instead of ResetRelations, try this.gridGroupingControl1.TableDescriptor.Relations.Clear(); This seems to work in this sample. GGC_NOParentHreader_5854.zip

Lance Koh
Replied On May 5, 2004 02:35 PM UTC

looks cool! i will explore into that area. thanks!


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

Live Chat Icon For mobile
Live Chat Icon