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.

Problem adding new row in a sorted GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

16990 Jul 28,2004 12:51 PM Jul 29,2004 12:39 AM Windows Forms 2
loading
Tags: GridControl
Mick Speake
Asked On July 28, 2004 12:51 PM

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

Administrator [Syncfusion]
Replied On July 28, 2004 02:00 PM

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

Mick Speake
Replied On July 29, 2004 12:39 AM

Many thanks - that''s perfect.

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.

;