Won't Fix
Last Updated: 04 Apr 2019 13:57 by ADMIN
Dinko
Created on: 22 Feb 2019 13:47
Category: GridView
Type: Bug Report
3
GridView: DataTrigger in the CellTemplate of a GridView column is not respected

The content of the cell is set from .LoadContent() method and is returned from the CreateCellElement method of the column. 

One possible scenario for a fix is to change that behavior and apply directly the template as WPF DataGrid does. However, this is a huge breaking change with CreateCellElement method is widely used. The second approach is to leave the code as it is right now, return the element from method of DataTemplate and set the ContentTemplate property of the cell to that DataTemplate. This will cause the content to be loaded twice. Which will degrade the  

So, as it turns out the solution is either to introduce breaking change or degrade the performance. Both of them are against our believes and efforts to improve the controls. 

Our suggestion is to use a workaround -  setting triggers directly to the style. We do hope you understand our concerns. 
0 comments