Mapping xaml columns to columns generated in code behind for WPF datagrid
12:31 07 Feb 2013

I want to display a byte array with around 300 elements in a data grid containing 16 columns and the required number of rows. I am generating both columns and rows in the code behind for a data table and then binding the data table to the data grid item source. I need to change the header style of each column. How can I do this? In case I generate 16 columns in xaml then, how can I map these columns to the ones generated in the code behind file?

wpf datagrid