This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi There, I have error validation on some properties in the datasource for the DataGrid.ItemsSource, Once there is an error for the property, the datagridcell stays on red-bordered even you clean up the error. How to fix the problem? We are still using 5.1, may 9th version. Thanks Gordon |
|
|
Hello Gordon I have not been able to reproduce any issues in the built-in validation system. Note that there are a few ways to trigger the validation in our DataGrid, I'm not sure which one you might be using. Could you please send us a repro project (such as a modified version of a recent project you've sent). Or describe how you are using the validation including code for any custom template the column is using and code for the validation logic in the property. Jason Fauchelle |
|
|
1) run the application 2) Click on Validation button 3)click Add button 4)click on baseDatasetFullPath column cell, you can see the red border, which is good 5)enter something, to make it not empty and click on other cell, the red border still there and error should be cleared. This is bad. Please fix them! |
|
|
any word on this issue? |
|
|
Hello Gordon Thanks for the project, I have been able to reproduce the issue and I'm looking into resolving this. The main reason for this bug is that support for IDataErrorInfo was never implemented for the DataGrid. It is by chance that it even partially works. I'll let you know when this is fixed. Jason Fauchelle |
|
|
Hello Gordon You can resolve this issue quickly on your end without needing a nightly build. Simply find all the places where you set the DisplayMemberBinding of a DataGridColumn, and set ValidatesOnDataErrors to true on the Binding. Jason Fauchelle |
|
|
Thanks Jason. I thought I have tried to set ValidatesOnDataErrors to false would fix he problem but I never tried set it to true. Gordon |
|