You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While multiple conditions can be combined and bound to IsEnabled property with a MultiBinding, there's no way to style the DataGridCells differently (in my case to add a tooltip).
Is your feature request related to a problem? Please describe.
It doesn't seem possible to add conditional style classes to the DataGridTemplateColumn.CellStyleClasses property in a DataGrid:
This would allow cells within a column to be styled differently based on a binding, e.g. disabling them.
Describe the solution you'd like
Allow to assign conditonal style classes on all DataGrid cells of that column:
Similar to conditional style classes for other controls:
Describe alternatives you've considered
It's possible to disable cells of a column when binding to the IsEnabled property of DataGridCell:
While multiple conditions can be combined and bound to IsEnabled property with a MultiBinding, there's no way to style the DataGridCells differently (in my case to add a tooltip).
I have tried using a behavior on the DataGridTemplateColumn similar to the following example: https://github.com/wieslawsoltes/Avalonia.Xaml.Behaviors/blob/master/samples/BehaviorsTestApplication/Views/Pages/AddRemoveClassActionView.axaml
However, I don't think there's a way to reference the DataGridCell or the DataGridRow from within a DataGridTemplateColumn using a relative binding.
Additional context
No response
The text was updated successfully, but these errors were encountered: