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.

GriDataControl and switching off error validation

Thread ID:

Created:

Updated:

Platform:

Replies:

110600 Aug 14,2013 06:34 PM Sep 2,2013 09:47 AM WPF 1
loading
Tags: GridControl
Charalampos Kouris
Asked On August 14, 2013 06:34 PM

Hi,

I have a GriDataControl and I want to turn off the error validation. The Grid is bind to a list of business objects. My models implements the IDataErrorInfo interface and I can see the errors on a edit form I have, this works fine and is what I want. But I don't want this on the grid, is just an overview. How can I do this, turn of the red hint? Tooltip is off already.

Cheers
Charalampos



Saravanan M [Syncfusion]
Replied On September 2, 2013 09:47 AM

Hi Charalampos,

We have analyzed your issue, You can hide the Errorinfo by handling QueryCellInfo event handler. You can refer the below codesnippet.

Codesnippet[C#]:

   this.syncgrid.Model.QueryCellInfo += Model_QueryCellInfo; 

void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)

        {

            if (e.Style.HasErrorInfo)

                e.Style.ErrorInfo = null;

         }

 

We have prepared a sample based on your requirement. Please find the sample.

Please let us know if you have any queries.

Regards,

Saravanan.M



GridDataControl_sample_error_71395167.zip

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.

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.

;