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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problem adding new row in a sorted GDBG

Thread ID:





16990 Jul 28,2004 04:51 PM UTC Jul 29,2004 04:39 AM UTC WinForms 2
Tags: GridControl
Mick Speake
Asked On July 28, 2004 04:51 PM UTC

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 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)

Mick Speake
Replied On July 29, 2004 04:39 AM UTC

Many thanks - that''s perfect.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon