I am using Silverlight 5, Doamin service and Telerik Controls(Version 2012.1.215.1050).
I need to validate the grid view cells against the database, in the Edit mode.I am using the CustomValidation function to do this.
Initially when the grid is loaded it edits the errored cell.
When I commit that row without changing anything, then the row background is set to red.
But it is not editing the cell and not showing the error message in the cell.
When I edit any other cell in the row and commit the row agian then it is automatically editing the errored cell and displaying the error in a tool tip.
Why it is not automatically editing and showing the error message when grid row is committed initially (when nothing is changed and committed).
But in this case the row background is changed.
Is there any GridView property that specifies the grid has a error?
I tried with RowStyleSelector property, but it is null.
Following is the code which I am using to set the error.
In the DTO class
Following is the Custom Validation function in the Shared file.