Given a WPF DataGrid
with nine columns, which is being populated programmatically through a binding, and has nine columns:
| 1 | 2 | a | 3 | 4 | b | 5 | 6 | c |
What I'd like to do is draw the headers as shown, keeping their width, but not actually display the column header text if the column header is a character. So I'd like it to look like this:
| 1 | 2 | | 3 | 4 | | 5 | 6 | |
I'm not sure of how to achieve this. Perhaps I can override the actual rendering method that is called when the column is constructed?