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
|
Hello, I have looked at your validation example where you can set DataGridValidateCellEventArgs e e.IsValid = false; e.ValidationMessage = "Name can not contain a space"; But this only occur when you listen to the ValidateCell="DataGrid_ValidateCell" event. However for my scenario we load the data via DataTable binding onto the DataGrid. Once loaded I would then like to check the validity of each cell value and set the validation state for the different cells. (Including setting the ValidationMessage) How can we do this without the need to edit each cell to trigger the ValidateCell? Thanks Oscar |
|
|
Hello, I'm checking on the status of this post since I have not seen a reply yet. Thanks Oscar |
|
|
Hi Oscar, Thanks for the feedback. In the next nightly build, cell validation will occur for each cell as it is visualized. This means as long as you are using the DataGrid.ValidateCell event, the behaviour that you're expecting will work once you get the next nightly build. -Jason Fauchelle |
|