I faced the same problem, unfortunately I did not find an elegant solution. Three workarounds are offered:
- Add another property to the data source class, which returns a string representation of the logical property. Hide the column displaying the boolean value, display the column displaying the string value.
- Add a column of an unrelated row, fill this column with the appropriate value for each row, and hide the column with a boolean character.
- Create a wrapper class for your data class that provides the properties you want them to display in the datagrid.
source
share