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.

GridGroupingControl Bound To BindingSource

Thread ID:

Created:

Updated:

Platform:

Replies:

98320 Feb 21,2011 02:05 AM Feb 27,2011 11:06 PM Windows Forms 1
loading
Tags: GridControl
Jonathan Ward
Asked On February 21, 2011 02:05 AM

Hi,

I was wondering if it is posssible to bind a GridGroupingControl with nested child tables directly to a BindingSource. I have tried to set the tblCustomersBindingSource as the DataSource in the attached example but I get an error in the Application.Run(new Form1()); line when I run the sample. I know I can set the DataSet as the DataSource and the Customers Table as the DataMemeber, but I would like to Bind to the tblCustomersBindingSource instead so that I can filter the Customers easily and access other usefull BindingSource properties. Is this possible and if so can you please let me know what I am doing something wrong.

Thanks in advance,
Jon



GGC_AccessEmulation_e48a1fb8.zip

Mahendran [Syncfusion]
Replied On February 27, 2011 11:06 PM

Hi Jonathan,

Thanks for your interest in Syncfusion products.

We are not able to reproduce the error in application.You have to set foreignkey relationship to child tables.The following code explains the same.Please refer the following dashboard sample.

Code snippet [C #]


// Setting up Master-Details Relation between Employees and Territories.
GridRelationDescriptor gridRelationDescriptor1 = new GridRelationDescriptor();
gridRelationDescriptor1.MappingName = "EmployeesEmployeeTerritories";
this.gridGroupingControl1.TableDescriptor.Relations.Add(gridRelationDescriptor1);


Please refer the samples from the sample browser from the following location in the machine that has Essential Studio installed:

{Installed Drive}:\Syncfusion\EssentialStudio\{Version Number}\Windows\Grid.Grouping.Windows\Samples\2.0\Relations And Hierarchy\Employee Territory Order Demo\

Please let us know if you have any concerns.

Regards,
R.Mahendran



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.

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.

;