918739xhb 你好
你的这个需求只需设置通过设置CellType 为 DateCalendarCellType 或者 ComboBoxCellType就可以。
- if (!IsPostBack)
- {
- this.FpSpread1.ActiveSheetView.RowCount = 15;
- this.FpSpread1.ActiveSheetView.PageSize = 3;
-
- FarPoint.Web.Spread.Extender.DateCalendarCellType dcct = new FarPoint.Web.Spread.Extender.DateCalendarCellType();
- dcct.DateFormat = "yyyy年MM月dd日";
- FpSpread1.ActiveSheetView.Columns[0].CellType = dcct;
- FarPoint.Web.Spread.ComboBoxCellType cbct = new FarPoint.Web.Spread.ComboBoxCellType();
- cbct.Items = new string[] { "AAA","BBB","CCC"};
- FpSpread1.ActiveSheetView.Columns[1].CellType = cbct;
- }
复制代码
2714c.zip
(5.37 MB, 下载次数: 263)
|