我把设计器添加的代码 private DataGrid datagrid1 ----->private MyDataGrid datagrid1 可以编译通过,但是运行时包错The base class includes the field 'grdIndexGroup', but its type (myDataGrid) is not compatible with the type of control (System.Web.UI.WebControls.DataGrid).请问如何解决???
后台却不是这个datagrid类,是不是这样请问各位对datagrid扩展的时候都是怎么做得,是做成usercontrol还是直接结成datagrid类
对类的继承不能继承实例