I have created my own controls that inherit from the .net controls. Then I reference the new custom controls in my code behind and erase "using system.web.ui.webcontrols"
This works as expected on almost everything.
The problem is when I call some gridview events, it does not recognize the type of argument.
protected void gvGridview_RowDataBound(GridViewRowEventArgs e)
One method to fix would be:
protected void gvGridview_RowDataBound(System.Web.UI.WebControls.GridViewRowEventArgs e)
However, I do not wish to do this because there are literally hundreds of applications that will use these custom controls. My wish is to drop it in, change the "Using" statement so it references my class library, then change the base page so it inherits my base page and be done.
I've researched and it seems you cannot override types. I've seen some mention of custom class wrappers, and aliases. I'm not sure what is best on how to do this. I assume (and may be wrong) that Telerik does this unless they created their RadGrid from the ground up and never inherit gridview.