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
close icon

Problem adding new row in a sorted GDBG

When adding a new row & only entering a value in the sort column of a GDBG before moving to another new row, the corresponding column in an existing row can be corrupted. I have created an example which displays 2 columns from the Northwind.Customers table. If you start adding a new row by typing Wo in the first col & then hit the down arrow key to add another record (without entering anything in col2), you will see the effect. If you repeat the process but tab into col2 before adding the row, there is no problem. I first encountered the problem in a table which only displayed 1 column. Any ideas on how to get round this? validate_3056.zip

2 Replies

AD Administrator Syncfusion Team July 28, 2004 06:00 PM UTC

Try handling the RowLeave event and call grid.CurrentCell.EndEdit if you are in the AddNew row.
private void grid_RowLeave(object sender, GridRowEventArgs e)
{
	if(e.IsAddNew)
	{
		this.grid.CurrentCell.EndEdit();
	}
}


MS Mick Speake July 29, 2004 04:39 AM UTC

Many thanks - that''s perfect.

Loader.
Live Chat Icon For mobile
Up arrow icon