how to remove row indicator column from datagridview in winforms c# [duplicate]
Asked Answered
S

1

6

Please see the attached screenshot. How do I avoid/delete the extra column marked in red? Basically this column act as a row indicator. enter image description here

Sumo answered 29/8, 2018 at 13:17 Comment(0)
C
9

Set the RowHeadersVisible = false to hide the row 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.

Contumely answered 29/8, 2018 at 13:22 Comment(1)
Thank you so much. I could not be figured out the exact name of that header.Sumo

© 2022 - 2024 — McMap. All rights reserved.