Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing an App that utilizes the UWP DataGrid control from the Windows Community Toolkit.
The control handles validation by turning the background red for scenarios where I have implemented INotifyDataErrorInfo, GetErrors(), HasErrors() and the ErrorsChanged event handler. This level of Validation is built into the control.
The problem with this is that the control does not display the error message returned by GetErrors().
I would like to display the error message below the Cell that has the error similar to what I can do in WPF.
I cannot find a solution anywhere for doing this.
Link to GitHub demo app:
https://github.com/Arebusf21/DataGridValidationDemo

What I have tried:

Written a small demo app to display the default error handing in DataGrid.
Posted
Updated 23-Oct-21 14:53pm
v2
Comments
[no name] 23-Oct-21 21:47pm    
Flyouts can be shown positioned relative to a given control (UIElement); which would be whatever is in the cell.
ajburge 25-Oct-21 20:22pm    
Hy Gerry< thanks for the response, do you know where I could find an example of how to do this?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900