I'm trying to find ways to decouple our code from a long-standing dependency on a specific 3rd party grid control (which we would like to replace as it's old and discontinued).
What I would like to do it follow my usual rule for 3rd party code -- wrap it in my own code and keep it decoupled from the rest of our code, so it is effectively decoupled from our code and hence becomes easy to change.
What I want to be able to do is create a UserControl that contains the 3rd party grid and make all code reference the UserControl, passing relevant calls and event to the internally held 3rd party control (that way I could replace the contained grid with some other grid without disrupting the rest of the UI code).
However, if I do this than I lose the design-time access to the contained grid's properties (which we use quite a lot). What I want to be able to do is add design-time attributes to my UserControl but have them 'pass through' to the 3rd party control it contains.
Any thoughts?
Herbie
Add your 2¢