我希望隐藏(或删除)我的数据网格中所有行(以及随后的单元格)的所有边框,就像基本的HTML表格。我已经搜索了很多地方,大多数问题似乎都是关于样式而不是隐藏它们。
我已经尝试设置BorderBrush和BorderThickness,如下所示:
尝试对CellStyle进行相同的操作,但没有成功,仍然看到边框。
我已经尝试设置BorderBrush和BorderThickness,如下所示:
<DataGrid.RowStyle>
<Style TargetType="DataGridRow">
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
</Style>
</DataGrid.RowStyle>
尝试对CellStyle进行相同的操作,但没有成功,仍然看到边框。