Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

VS2010 - DataGrid: Leftmost VerticalGridLine not visible

$
0
0

Hi all,

I'm still struggling with DataGrid. When trying to paint a little Grid w/o an Border and with GridLinesVisibility="All" the leftmost vertical line of the leftmost cells is not painted. Here is my proof:

And this is the Style and the RowStyle used in the DataGrid:

<!-- DataGrid Base with Grid Layout --><Style x:Key="DataGridBaseTwo" TargetType="{x:Type DataGrid}"><Style.Setters><Setter Property="Foreground" Value="DarkBlue" /><Setter Property="Background" Value="{x:Static SystemColors.MenuBarBrush}" /><Setter Property="BorderThickness" Value="0" /><Setter Property="BorderBrush" Value="Khaki" /><Setter Property="GridLinesVisibility" Value="All" /><Setter Property="VerticalGridLinesBrush" Value="Red" /><Setter Property="HorizontalGridLinesBrush" Value="Khaki" /></Style.Setters></Style><Style x:Key="DataGridRowStyle" TargetType="{x:Type DataGridRow}"><Setter Property="FontFamily" Value="Segoe UI" /><Setter Property="FontSize" Value="12" /><Style.Triggers><Trigger Property="IsSelected" Value="True"><Setter Property="BorderThickness" Value="0" /></Trigger></Style.Triggers></Style>

I have no idea how to make the DataGrid to paint that missing vertical gridline. BTW: Seems I have some more trouble ahead with this great but hard to style Control ;-)

Many thanks in advance!


Regards Uwe



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>