简体   繁体   中英

How to make entire GridView to ReadOnly?

I am able to make individual columns to be read only on Form load, but I want to set the complete grid view to be read only instead of setting each and every column to be read only. Is it possible ?

因为您将其标记为WinForms,所以我假设您要询问DataGridView ,它具有属性ReadOnly ,将其设置为true。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM