如何从 winforms c# 中的 datagridview 中删除行指示器列
how to remove row indicator column from datagridview in winforms c#
请看附件截图。我如何 avoid/delete 额外的红色列?基本上,此列充当行指示器。
设置 RowHeadersVisible = false 以隐藏行 header:
dataGridView1.RowHeadersVisible = false;
Remarks
If the RowHeadersVisible property is false, a row whose Resizable property is set to true can still be resized in the user
interface (UI) by clicking the mouse cursor anywhere along the bottom
border of the row to be resized.
请看附件截图。我如何 avoid/delete 额外的红色列?基本上,此列充当行指示器。
设置 RowHeadersVisible = false 以隐藏行 header:
dataGridView1.RowHeadersVisible = false;
Remarks
If the RowHeadersVisible property is false, a row whose Resizable property is set to true can still be resized in the user interface (UI) by clicking the mouse cursor anywhere along the bottom border of the row to be resized.