Disable the autoadding of rows in the DataGridView
I'd like my users to not be able to add-or even autoadd- rows to the datagridview.
What setting do I need to set for this?
Edit: I also ne开发者_如何学Pythoned to lock a particular column from editing. A user cannot enter/modify text in column[0] of the datagridview.
In DataGridView properties set AllowUserToAddRow to false.
And for a column you want to lock, set it's property to ReadOnly.
精彩评论