0

I need to show gridlines in a data grid, also a passing-through grid.

I am not able to do so as, by default, gridlines only pass through data (not all the way to the bottom of the grid).

One way I can think of is to have a styling datagrid header and place the border inside datatemplate. But manually doing it, there may be an issue of alignment of gridlines and the border.

How do I elegantly achieve the same?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Tilak
  • 30,108
  • 19
  • 83
  • 131

1 Answers1

0

Check out an answer to Stack Overflow question Vertical gridlines in a ListView.

I tested the approach in that post, and it will solve the issue of gridlines, by drawing them beyond data. However, in applying a new template to

<ListView.ItemTemplate> 

you will loose the headers.

Community
  • 1
  • 1
denis morozov
  • 6,236
  • 3
  • 30
  • 45