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.

can''t insert a row in a master detail table

Thread ID:

Created:

Updated:

Platform:

Replies:

16124 Jul 6,2004 12:44 PM Jul 6,2004 03:39 PM Windows Forms 1
loading
Tags: GridControl
Christian Pogea
Asked On July 6, 2004 12:44 PM

i downloaded the sample master-detail-detail and delete the lines in the source, responsible for insertig rows in der grandchildtable. after that, i''m not able to use the grid to insert a row in the grandchildtable, only if at least one row is available in the datatable. i think this is a bug, beacause the same sample is working fine with windowsforms datagrid. i am using syncfusion 2.5.0.0 and .net framework 1.1 3714_1550.zip

Administrator [Syncfusion]
Replied On July 6, 2004 03:39 PM

I think you can get things to work by handling the Enter event in the gridDataBoundGrid3, and explicitly adding the new row when needed.
private void gridDataBoundGrid3_Enter(object sender, EventArgs e)
{
	if(this.gridDataBoundGrid3.Model.RowCount == 1)
	{
		this.gridDataBoundGrid3.Binder.AddNew();
		this.gridDataBoundGrid3.CancelUpdate();
	}
}

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.

;