我现在项目中对表格控件有一些公共的操作,因此对SheetView类定义了一个子类
- public class TJSheetView : SheetView
- {
- public TJSheetView();
- public Dictionary<int, object[]> dicData { get; set; }
- public void AddToDic(int row);
- public int CancelRow();
- public int CopyRow();
- public void Data_Set(DataTable dt);
- public int DeleteRow();
- public decimal GetDecimal(int irow, int icol);
- public bool HasEditingRow();
- public int insertRow();
- public int PasteRow();
- }
复制代码
现在有一个麻烦的地方是,在窗体设计的时候,把控件 spread拖拽上去后,自动生成的还是
- this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
- this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
复制代码
有没有办法让自动生成变为
- this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
- this.fpSpread1_Sheet1 = new MES.CommonControls.Client.TJSheetView();
复制代码 |
|