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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

master-detail

Thread ID:

Created:

Updated:

Platform:

Replies:

5589 Jul 9,2003 12:16 PM UTC Jul 10,2003 07:58 AM UTC WinForms 2
loading
Tags: GridControl
joe
Asked On July 9, 2003 12:16 PM UTC

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 10:45 PM UTC

> 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 07:58 AM UTC

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.

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

;