Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个问题:
您想要的是 2 个属性:(ColumnHeadersVisible用于显示/隐藏列标题)和RowHeadersVisible(用于显示/隐藏行标题);
ColumnHeadersVisible
RowHeadersVisible
dataGridView1.ColumnHeadersVisible = false; dataGridView1.RowHeadersVisible = false;
您必须修改以下属性 false。
RowHeadersVisible ColumnHeadersVisible