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
close icon

Supress the Cell ErrorMessage

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

1 Reply

AD Administrator Syncfusion Team 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.

Loader.
Live Chat Icon For mobile
Up arrow icon