Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在表单加载时将单个列设置为只读,但我想将完整的网格视图设置为只读,而不是将每一列设置为只读。是否可以 ?
因为您将其标记为 WinForms,我假设您正在询问DataGridView它,它具有属性ReadOnly,将其设置为 true。
DataGridView
ReadOnly