除了FpSpread1.ActiveSheetView.AllowSort = true;
还要加什么代码吗
还有我加了
[Serializable]
public class myColHeader : FarPoint.Web.Spread.GeneralCellType
{
public override System.Web.UI.Control PaintCell(string id, System.Web.UI.WebControls.TableCell parent, FarPoint.Web.Spread.Appearance style, FarPoint.Web.Spread.Inset margin, object value, bool upperLevel)
{
Control ss = parent.Parent;
if (!(ss is FarPoint.Web.Spread.FpSpread))
{
ss = ss.Parent;
}
parent.Attributes.Add("ondblclick", "sortColumn(this)");
return base.PaintCell(id, parent, style, margin, value, upperLevel);
}
}
FpSpread1.ActiveSheetView.EnableRowEditTemplate = true;
myColHeader g = new myColHeader();
FpSpread1.ActiveSheetView.Columns[2].CellType = g;
但生成的代码里FpCellType还是readonly,不是myColHeader,是什么原因呢
2013-04-18 11 26 53.jpg
(38.67 KB, 下载次数: 1135)
|
|