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 Problem

Thread ID:

Created:

Updated:

Platform:

Replies:

20450 Oct 19,2004 06:46 AM Oct 20,2004 03:32 AM Windows Forms 4
loading
Tags: GridControl
Christian Pogea
Asked On October 19, 2004 06:46 AM

I tried the sample 3714 ( Master - Detail - Detail) and everything is fine. if i create only 1 detail and i want to change the detail from the second parent, changes will be stored to the first parent. just select the first parent and you''ll see your changes. if i''ll use the .net framework''s datagrid everithig is fine. i''m using syncfusion 2.0.5.0

Administrator [Syncfusion]
Replied On October 19, 2004 10:17 AM

You should try your sample with version 2.1.0.9. If you do not want to, if you will post the sample you are using along with the exact steps to reproduce the problem, I can try it here to see if the problem has been addressed in that release.

Christian Pogea
Replied On October 20, 2004 01:52 AM

i tryed your sample with 2.1.0.9 with same problems. the modified samble is included. run ist and select the third parent. now go to the child and change its name. after that select the first parent. as you can see, you didn''t change the third parent''s child. if you try it a couple of times, it works smoothly, sometimes. if there are more than one childs, allthing works smoothly. there are often problems on some machines if there are no childs and you want to add a new child. >You should try your sample with version 2.1.0.9. > >If you do not want to, if you will post the sample you are using along with the exact steps to reproduce the problem, I can try it here to see if the problem has been addressed in that release.

Christian Pogea
Replied On October 20, 2004 01:54 AM


Administrator [Syncfusion]
Replied On October 20, 2004 03:32 AM

This does seem to be a problem. Thank you for reporting it. Below is a work-around that seems to work in the sample. Maybe you could use it until we get a release out that has this corrected. It handles the grid.Enter event and in the case there is a single row, it adds and removes a row using the CurrencyManager. This action makes sure the currencymanager is set properly.
private void gridDataBoundGrid2_Enter(object sender, EventArgs e)
		{
			CurrencyManager cm = (CurrencyManager) this.BindingContext[this.gridDataBoundGrid2.DataSource, this.gridDataBoundGrid2.DataMember];
	if(cm.Count == 1) 
	{
		this.gridDataBoundGrid2.BeginUpdate();
		cm.AddNew();
		cm.RemoveAt(1);
		this.gridDataBoundGrid2.EndUpdate();
	}
}

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.

;