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.

master-detail

Thread ID:

Created:

Updated:

Platform:

Replies:

5589 Jul 9,2003 08:16 AM Jul 10,2003 03:58 AM Windows Forms 2
loading
Tags: GridControl
joe
Asked On July 9, 2003 08:16 AM

The detail table does not update when you use a GridDataBoundGrid within a GridRecordNavigationControl for the master table. I used a previous posted sample for a triple master detail and wrapped the master grid in a GridRecordNavigationControl (see form2 in the attached file).

Administrator [Syncfusion]
Replied On July 9, 2003 06:45 PM

> The detail table does not update when you use a GridDataBoundGrid within a GridRecordNavigationControl for the master table. > > I used a previous posted sample for a triple master detail and wrapped the master grid in a GridRecordNavigationControl (see form2 in the attached file). > All the grid's must use the same binding context. By default, a grid takes its bindingcontext from its parent. So, the master grid is using the recordnavcontrol's binding context, and the details grid is using the forms bindingcontext. so, try code like: //set the grids this.gridDataBoundGrid1.BindingContext = this.BindingContext; this.gridDataBoundGrid1.DataSource = parentTable; this.gridDataBoundGrid2.DataSource = parentTable; this.gridDataBoundGrid2.DataMember = "ParentToChild";

joe
Replied On July 10, 2003 03:58 AM

Thanks Clay, that worked. It is actually this.gridDataBoundGrid1.Binder.BindingContext in case someone is checking this out. Joe > > The detail table does not update when you use a GridDataBoundGrid within a GridRecordNavigationControl for the master table. > > > > I used a previous posted sample for a triple master detail and wrapped the master grid in a GridRecordNavigationControl (see form2 in the attached file). > > > > All the grid's must use the same binding context. By default, a grid takes its bindingcontext from its parent. So, the master grid is using the recordnavcontrol's binding context, and the details grid is using the forms bindingcontext. so, try code like: > > > //set the grids > this.gridDataBoundGrid1.BindingContext = this.BindingContext; > > this.gridDataBoundGrid1.DataSource = parentTable; > > this.gridDataBoundGrid2.DataSource = parentTable; > this.gridDataBoundGrid2.DataMember = "ParentToChild"; >

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.

;