eo_support wrote:Hi,
I can't see anything special in this case. You would basically change your code to work with both user controls. There is no trick or shortcut I can think of.
Thanks!
The part which makes this tricky, is that User Controls have 3 parts: Source (Markup), Designer Generated Code, and custom Code-Behind.
I can create a new UC2 which will inherit UC1. In UC2, I copy/past the markup from UC1 to UC2 and delete EO_Grid Markup, and replace it with ASP.NET GridView. In other words, UC2 is same as UC1 but the EO.Web Grid must be replaced with ASP.NET GridView, and the Control ID must be the same, becuase most properties/methods do exist in both controls, and most code can be reused.
Actually, it worked, but not directly. I had to do some small tricks to make it work, beucase EO.Web Grid cannot be converted to ASP.NET GridView, which was the main problem. In UC2 I must remove all reference to EO.Web Dll.
I think I am nearly 80% done.