当前位置: 首页 > 编程语言 > C#

如何隐藏DataGridView的网格线?WinformsC#分享

时间:2023-04-10 19:33:07 C#

DataGridView如何隐藏网格线?WinformsC#如何隐藏DataGridView的网格线?我在互联网上搜索但没有找到解决方案。请帮助,谢谢。你可以试试MyGrid.CellBorderStyle=DataGridViewCellBorderStyle.None;dataGridView1.CellBorderStyle=DataGridViewCellBorderStyle.None;您也可以在DataGridView属性中进行设置,选择DataGridView->Properties->CellBorderStyle将其更改为None。你也可以试试这个上面是C#学习教程:如何隐藏DataGridView的网格线?WinformsC#分享的所有内容,如果对你有用,需要了解更多C#学习教程,希望大家多多关注—this.dataGridView1.AdvancedCellBorderStyle.All=DataGridViewAdvancedCellBorderStyle.None;本文收集自网络,不代表立场。如涉及侵权,请点击右侧联系管理员删除。如需转载请注明出处: