开发者

Disable the autoadding of rows in the DataGridView

开发者 https://www.devze.com 2023-02-07 05:24 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消