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

How to know programmatically if the grid has any error?

GridDataControl enables you to get the error info for each cell using QueryCellInfo event. The HasErrorInfo property indicates you whether the particular cell has any error information or not. When the cell has any error you can use ErrorInfo property to get the error information of that particular cell. Refer the following code snippet.

C#

 

Here, you can check whether the cell has any error using “HasErrorInfo”. When there is any error, an ErrorInfo displays in the output window, else “No errors” displays in the output window.

Other properties related to ErrorInfo are given as follows.

 

Property Name

Return Type

Description

HasError

boolean

Checks whether any Error has been initialized for the current object.

Error

string

Contains error information when a text could not be converted to the type specified with CellValueType.

HasErrorAlertText

boolean

Checks whether the current object has any error alert text.

ErrorAlertText

string

Gets or sets the error alert text. Holds the error alert text when importing the excel file to grid.

HasErrorAlertTitle

boolean

Checks whether the current object has any error alert title.

ErrorAlertTitle

string

Gets or sets the error alert title. Holds the error alert title while importing the excel file to grid.

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework: Product Version:
2469 08/12/2014 08/12/2014 WPF GridDataControl 4 12.1.0.43
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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