I have a GridView with several columns. I am using a subset of columns to the right to show bars like a kind of Gantt chart.
I want to style the cells in the rows in such a way that each Cell merge with the cell to its left and the cell to its right (no merge with above or below cells) in order to produce the impression that there is a horizontal bar created by setting the background color.
I set up padding and also margin to (0,10, 0,10) in the Cell Template and hidden the columns vertical lines but I still get a gap between the cells.
I also created a GridViewCellStyle copied from the default as suggested in the documentation, I assigned to the DataColumns tag but make no difference. I can't get rid of the gaps. So I may be doing something wrong.
1. Could you be so kind of tell me how can I get this result.
2. I need to change the name of the columns header dynamically. I can do it from code behind but if I want to do it from XAML how I do that?
Thanks