版主
单元格设定日期格式后
DataSource赋值以后 显示没有格式化
FarPoint.Web.Spread.DateTimeCellType dtcell = new FarPoint.Web.Spread.DateTimeCellType();
dtcell.DateTimeFormat = new System.Globalization.DateTimeFormatInfo();
dtcell.DateTimeFormat.ShortDatePattern = "MM/dd";
dtcell.FormatString = "MM/dd";
dtcell.EditMode.DateTimeFormat = new System.Globalization.DateTimeFormatInfo();
dtcell.EditMode.FormatString = "MM/dd";
dtcell.ShowPopupButton = true;
spdList.ActiveSheetView.Columns[4].CellType = dtcell;
直接赋值 显示是格式化的,但是DataSource赋值就没有格式化显示
|
|