Removing all DataGrid row and cell borders

前端 未结 2 994
鱼传尺愫
鱼传尺愫 2021-02-01 12:06

I want to hide (or remove) all the borders of all the rows (and subsequently cells) in my datagrid, think a basic HTML table. I\'ve looked all over and most questions seem to be

相关标签:
2条回答
  • 2021-02-01 12:41

    What about setting GridLinesVisibility="None"?

    <DataGrid GridLinesVisibility="None">
        ...
    <DataGrid>
    
    0 讨论(0)
  • 2021-02-01 12:57

    You could also do it this way

     dataGrid.GridLinesVisibility = DataGridGridLinesVisibility.None;
    
    0 讨论(0)
提交回复
热议问题