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. Image for the cookie policy date

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

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

1 Reply

AD Administrator Syncfusion Team July 6, 2004 07:39 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon