Inheriting from DataGridTextColumn and overriding GenerateElement

Posted by philbrowndotcom on Stack Overflow See other posts from Stack Overflow or by philbrowndotcom
Published on 2010-06-01T21:34:17Z Indexed on 2010/06/15 14:52 UTC
Read the original article Hit count: 556

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

© Stack Overflow or respective owner

Related posts about wpf

Related posts about datagrid