Inheriting from DataGridTextColumn and overriding GenerateElement
- by philbrowndotcom
I'm attempting to create a custom DataGrid where I can format individual cells based on the cell value (ie; red text for negative values, green for postitive) ala this approach...
http://stackoverflow.com/questions/686165/how-to-get-binding-value-of-current-cell-in-a-wpftoolkit-datagrid
I also need to convert the values from negative to parenthesised (ie; -2.34 to (2.34)).
I've got the inheritance/overide working. My question is, how do I get access to the values in the cells in the overridden GenerateElement method.
Thanks in advance,
Phil