Datagridview-在第一列之前删除部分

我想知道在使用 datagridview 控件时,是否可以删除第1列之前看起来像列的内容。我认为它用于选择行,但不确定它的名称。

55312 次浏览

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.

To make the row headers smaller you can use the property RowHeadersWidth.

I hope this helps you.

Set the RowHeadersVisible property to False and it will work like a charm