开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜