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.
Syncfusion Feedback

Supress the Cell ErrorMessage

Thread ID:

Created:

Updated:

Platform:

Replies:

16945 Jul 28,2004 04:02 AM UTC Jul 28,2004 06:06 AM UTC Windows Forms 1
loading
Tags: GridControl
Satish
Asked On July 28, 2004 04:02 AM UTC

Clay, How to Supress the Cell ErrorMessage (System Error Message). I will handle this in the ''Save'' button. I do not want to display any error message. Thanks Satish

Administrator [Syncfusion]
Replied On July 28, 2004 06:06 AM UTC

In a GridControl, you can handle CurrentCellMoveFailed and set grid.CurrentCell.ErrorMessage = "" there to just suppress the message. In a GridDataBoundGrid, you can do the same thing in the ValidateFailed event, BUT, this will not allow your user to leave a cell in an invalid state. So, in a GridControl, if the celltype is double for example, you cannot leave it holding something that is not a double. The reason is that the grid cannot save this value for you, it can only save doubles. So, you will have considerable work to do to postpone checking if you want cells to ''temporarily save'' invalid values until later. One way this could be done is to use CellValueType = typeof(string) for all cells. Then there is not a problem for the grid saving things. Then later you could validate each string to see if it makes sense for the real type you want to see. It will take some work.

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.

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

;