I have a WinForms form with a DataGridView
on it. The DataGridView
is set to protected
.
When I inherit that form, it is not possible to change the DataGridView
in the Visual Studio designer. If I do the whole thing with a Button
, it works as expected.
Is there a way to fix this?
Some (clipped) code (from DatagridForm.Designer.cs):
partial class DatagridForm {
protected DataGridView dgData;
protected Button button;
}
and from Inherited.cs:
partial class Inherited : DatagridForm {
}