Cannot modify DataGridView properties in inherited control
I have a WinForms UserControl (A) that contains a DataGridView. I have another control (B) that is a subclass of A (B inherits from A). Everything works fine, except that I can't make any changes to the properties of the subclassed control (B). Is there any way to allow this?
I need to resize/move the DataGridView on the child control (B). I added the DataGridView to a Panel, and I could resize that, but I'm using this pattern a lot, and all the Panels really slow down the resizing of the form.
Thanks,
Erick
This is by design. The DataGridView does not support being modified directly in an inherited form.
-mark
DataGridView Program Manager
Microsoft
This post is provided "as-is"
What?
So what you are saying is that if we have a project that is based on the inherited forms and have a datagridview (used to ba a datagird) on the base forms that we will not be able to change properites at designtime?
It's ok for the datasource, but designing cell styles in code? wow, no way. DataGrid stays.
--
Ivan