Home Forums WPF controls Xceed DataGrid for WPF DataTable with dynamic columns

Viewing 1 post (of 1 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #41566 |


    I have a datatable which has a basic set of known columns and a number of columns with generated name e.g. ‘Col-456’, Col-‘567’, etc.  I want to format and validate the data in these columns based on the known columns.  For example, there is a ‘Default’ value column.  If the value in the dynamic column  matches the default value for that row, i want to color the text grey. 

    I have been going around in circles trying to determine the best way to accomplish this. A couple of questions:

    – can I assign specific Templates to my known Columns, but have a default Template for any column with no template?

    – Is there a way to retrieve a datarow object during grid generation? I can get the fomatting to work if i select a cell and grab the datarow, but not initally


    Any help appreciated! 


    Imported from legacy forums. Posted by Tim (had 14 views)

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.