DataGridView locked on a inherited UserControl

前端 未结 5 1360
慢半拍i
慢半拍i 2020-12-03 14:45

I have a UserControl with some predefined controls (groupbox,button,datagridview) on it, these controls are marked as protected and the components variable is also marked as

5条回答
  •  有刺的猬
    2020-12-03 15:24

    Add the datagrid to a panel control and set the modifiers of the panel and the datagrid to protected. This will all your inherited form design time access to the properties of the grid.

提交回复
热议问题