首页 > 解决方案 > DataGridView properties are disable in child form

问题描述

I have a parent form (Form1) and a child form (Form2) that inherits from the former. They have one button and one datagridview control.

enter image description here

When i start to work on the child form (Form2), in design mode, my button properties are enabled but datagridview all properties are disabled, eventhough I set their modifiers to public.

enter image description here

enter image description here

enter image description here

How can I change these properties in the child form for DataGridView?

标签: c#winformsdatagridview

解决方案


推荐阅读