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

databoundgrid format exception

Thread ID:





23611 Jan 16,2005 08:53 AM UTC Jan 16,2005 11:37 AM UTC WinForms 1
Tags: GridControl
Asked On January 16, 2005 08:53 AM UTC

hi there, I am having a problem in handling an exception during updation of an existing row or creation of a new row from a GDBG. Everytime I want to update a particular cell to null , it will throw an exception and the cursor will stick on that cell until I pressed esc. My questions are, 1. how do i change the error message thrown if possible ? 2. Is there a way to make the cursor moveable after the exception thrown? I have tried to handle the exception through some events such as, deactivating, deactivatedfailed, validating ,etc. But then, number of messages pop up in 1 time when exception is thrown becomes vary, can be more then 1 time and if I close the application before fixing up the cell, the application will pop up around 4 messages. Just wondering why does it work like this ? cheers, adit

Administrator [Syncfusion]
Replied On January 16, 2005 11:37 AM UTC

1) In CurrentCellValidating (or ValidateFailed), set grid.CurrentCell.ErrorMessage to be the message you want to see. 2) If the datacolumn in your datasource has its AllowDBNull = false, then you will not be able to leave the cell empty. But if you have this property set to true, then you should be able to leave teh cell empty. Earlier versions had a problem in some situations doing this, but we think all that corrected in the code or later. If you are using 2109 or later, can you tell us how to se ethe problem in one of our samples? Or, can you upload a sample showing this problem?


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