Search code examples
datagridviewresizedatagridviewcolumn

How to prevent resize initial column in c# winforn datagridview?


In my DataGridView, I have set

AllowUserToResizeColumns = False

And it works fine except for the very first column which I have marked with red arrow. Where is the property that controls this column?

Click to view Image


Solution

  • You can set RowHeadersWidthSizeMode property to DisableResizing.