我想知道在使用 datagridview 控件时,是否可以删除第1列之前看起来像列的内容。我认为它用于选择行,但不确定它的名称。
Here is a solution for standard windows controls in C#.
To hide the row headers you can use the property RowHeadersVisible and set it to false.
RowHeadersVisible
To make the row headers smaller you can use the property RowHeadersWidth.
RowHeadersWidth
I hope this helps you.
Set the RowHeadersVisible property to False and it will work like a charm