Disable row autoload in DataGridView

I would like my users to not be able to add or even autoload rows in a datagridview.

What setting do I need to set for this?

Edit: I also need to block a specific column from editing. User cannot enter / change text in column [0] of datagridview document.

+4
source share
1 answer

In the DataGridView properties, the AllowUserToAddRow parameter is set to false.
And for the column you want to lock, set its property to ReadOnly.

+11
source

Source: https://habr.com/ru/post/1337617/


All Articles