N
Nick Locke
I have just found that there is a feature in VS .NET which deliberately
stops me making a DGV "protected" in an ancestor class and then modifying
its properties in inherited classes. I can see why this problematic for MS
and therefore why it has not been implemented. However, I could do with a
suggestion on how best to move forwards with what I need to do.....
I have an ancestor UserControl which contains a single DGV and lots of
methods/properties to allow me to "talk" with that DGV from a containing
form.
I then need around 30 UserControls inherited from that ancestor. They all
need to offer the same methods/properties, but will need different data
connections from their instance of the DGV. They will also need different
columns displayed, with different headings and so on.
I could obviously bin the OO approach altogether and just copy my control 30
times - but I am fearful of then needing to make every change 30 times in
the future.
Suggestions please!
Thanks, Nick.
stops me making a DGV "protected" in an ancestor class and then modifying
its properties in inherited classes. I can see why this problematic for MS
and therefore why it has not been implemented. However, I could do with a
suggestion on how best to move forwards with what I need to do.....
I have an ancestor UserControl which contains a single DGV and lots of
methods/properties to allow me to "talk" with that DGV from a containing
form.
I then need around 30 UserControls inherited from that ancestor. They all
need to offer the same methods/properties, but will need different data
connections from their instance of the DGV. They will also need different
columns displayed, with different headings and so on.
I could obviously bin the OO approach altogether and just copy my control 30
times - but I am fearful of then needing to make every change 30 times in
the future.
Suggestions please!
Thanks, Nick.