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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Clearing AddNewRecord row

Thread ID:





52807 Dec 5,2006 12:40 AM UTC Dec 5,2006 05:16 PM UTC WinForms 2
Tags: GridControl
Asked On December 5, 2006 12:40 AM UTC

I have a question about unique constraints on an AddNewRecord row. The dataset my grid is bound to has a unique constraint on one of the columns.

If a particular cell is duplicated a grid_ExceptionRaised event is fired. Within this event I try to remove the offending data by doing this:

Record r = this.grid.Table.CurrentRecord;

Unfortunatly this does not remove the data within the record.

I tried to to remove the data by doing this as well:


This does remove the information but if I try to enter any new info in the AddNewRecord row the value disappears.

How do I remove the data within the AddNewRecord row and have it behave normaly?

Administrator [Syncfusion]
Replied On December 5, 2006 05:16 AM UTC

Hi Rocko,

If you want to cancel the changes in the AddNewRecord,you need to call the Table.CancelEdit method. Please try the suggestion and let me know if this helps.


Best Regards,

Replied On December 5, 2006 05:16 PM UTC

The values get cleared but if I try to enter new values into the AddNewRecord row the cell values still disappear as I add them.


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