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

Master-Detail

Thread ID:

Created:

Updated:

Platform:

Replies:

43005 Apr 12,2006 02:31 AM UTC Apr 17,2006 03:53 PM UTC WinForms 4
loading
Tags: Grouping
sizhen
Asked On April 12, 2006 02:31 AM UTC

Hi, I want to design a form with two tables. I already bond them as a master and a detail. But the data in master table will be displayed in several TextBox, and the details data shown in GridDataBoundGrid. My problem is when I move to next datarow of master by setting this.BindingContext[dsDataSet,"Table1"].Position add 1, how I let the grid follows the master change to show the new row''s children. thanks! sizhen

Administrator [Syncfusion]
Replied On April 12, 2006 02:57 PM UTC

Hi Sizhen, Attached is a sample that displays the master table in text boxes and the detail table in a gridDataBoundGrid and as the data row is navigated the grid shows the respected child rows by handling the BindingManagerBase.CurrentChanged event. Let us know if this helps. Regards, Calvin.

43005.zip

sizhen
Replied On April 17, 2006 07:30 AM UTC

Dear Sir, I couldn''t download it (''43005.zip''). It shows"invalid or corrupted. Would you please attach it again. Thanks! sizhen >Hi Sizhen, > >Attached is a sample that displays the master table in text boxes and the detail table in a gridDataBoundGrid and as the data row is navigated the grid shows the respected child rows by handling the BindingManagerBase.CurrentChanged event. Let us know if this helps. > >Regards, >Calvin.

43005.zip

sizhen
Replied On April 17, 2006 09:31 AM UTC

Hi Calvin, I already got 43005.zip. Thanks! In my coding,I already designed a gridDataBoundGrid (gdbgMASTER) to bind master table. But it is not visible. When the textbox.text is changed (new position of BindingContext), I also move current cell of gdbgMASTER to the new position. But it is not a good method. I guess when gdbgMASTER''s currentCell is changed, some event is called to show current children data. Do you have any remmendation (to register some event or others) to replace gdbgMASTER? Thanks! sizhen >Dear Sir, >I couldn''t download it (''43005.zip''). It shows"invalid or corrupted. Would you please attach it again. Thanks! > >sizhen > >>Hi Sizhen, >> >>Attached is a sample that displays the master table in text boxes and the detail table in a gridDataBoundGrid and as the data row is navigated the grid shows the respected child rows by handling the BindingManagerBase.CurrentChanged event. Let us know if this helps. >> >>Regards, >>Calvin.

43005.zip

Administrator [Syncfusion]
Replied On April 17, 2006 03:53 PM UTC

Hi Sizhen, In the posted sample the parent table fields were bound to the textbox directly without having any hidden Grid and the detail (child) table to the gridDataBoundGrid. And as you navigate in the master table using the BindingManagerBase (++manager.Position)the grid shows the respected child rows by handling the BindingManagerBase.CurrentChanged event. It does nott have any hidden grid. Let us know if you are looking for some thing different. Regards, Calvin.

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

;