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

GriDataControl and switching off error validation

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



1 Reply

SM Saravanan M Syncfusion Team September 2, 2013 01:47 PM UTC

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

Loader.
Up arrow icon