Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
705
XamGrid: Validate bounded data
posted

Hello,

I've a simple XamGrid with a bounded items source. I want to validate the bounded data and highlight the column correspondingly.
The user should now correct these data. 

I've looked into the validation part of the documentation but this only refers to the validation of data, the user enters into the specific controls at runtime.

How can I achieve this?

Parents
No Data
Reply
  • 890
    posted

    Hi,

     

    The XamGrid is using TextBlock controls to render cell content when not in edit mode and since the TextBlock does not have a border it is not possible to show existing errors on initial load. You could try and create a custom template when not in edit mode to use a more complex element but that will add some performance impact.

     

    Or you could use the XamDataGrid control if the application is WPF only. The grid supports displaying errors on initial load since the cell presenter template there is different.

    Please let me know if you have any other questions.

     

    Thanks,

    Slavi

Children