你提到的“自定義服務器控件”是指在VS中添加的"ASP.NET Server Control",而不是"Web user control”,对吗?
自定义的ASP.NET Server Control还是可以通过自定义的CellType来实现,需要重写GetEditorControl方法:
- public class MyCellType : FarPoint.Web.Spread.GeneralCellType
- {
- public override Control GetEditorControl(string id, TableCell parent, FarPoint.Web.Spread.Appearance style, FarPoint.Web.Spread.Inset margin, object value, bool upperLevel)
- {
- return base.GetEditorControl(id, parent, style, margin, value, upperLevel);
- }
- }
复制代码 |