Master Detail Problem

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

4 Replies

AD Administrator Syncfusion Team October 19, 2004 02:17 PM UTC

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.


CP Christian Pogea October 20, 2004 05:52 AM UTC

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.


CP Christian Pogea October 20, 2004 05:54 AM UTC



AD Administrator Syncfusion Team October 20, 2004 07:32 AM UTC

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();
	}
}

Loader.
Up arrow icon