简体   繁体   中英

How to disable editing a custom control in designer

I create a custom control CustomDataGridView which inherits from DataGridView. The CustomDataGridView control will have 4 columns I code in its constructor. I open Form1 in designer, drag a CustomDataGridView control to add it in Form1. Clearly, you will see 4 columns in this CustomDataGridView control. When I click on it, I can edit its columns.

How to disable this feature in my CustomDataGridView control from designer. I want CustomDataGridView can't be edited to change any properties in designer.

Please help me. Thanks.

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