2017-05-05 96 views

回答

0

集这个属性

GridLinesVisibility = “全部”,VerticalGridLinesBrush = “红” 与了borderThickness = “1,1,5,0”

数据网格

0

GridLines似乎没有厚度设置...您可以使用DataGridCell属性代替。

<DataGrid GridLinesVisibility="Horizontal"> 
     <DataGrid.CellStyle> 
      <Style TargetType="DataGridCell"> 
       <Setter Property="BorderThickness" Value="0,0,3,0"/> 
       <Setter Property="BorderBrush" Value="Red"/> 
      </Style> 
     </DataGrid.CellStyle>