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

[523 byte] By [ErickThompson] at [2007-12-17]
# 1

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"

MarkRideout at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 2
I wish it were different, but it's understandable, given the complexity of the control.

Thanks,
Erick

ErickThompson at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 3

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

ivanc at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 4
I really need a way around this, its bad bad bad!
Shahzad.K.Y at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...