回复 1楼X765321的帖子
判断方式如下:
后台:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- FarPoint.Web.Spread.ButtonCellType buttonType=new FarPoint.Web.Spread.ButtonCellType();
- this.FpSpread1.Sheets[0].Columns[0].CellType = buttonType;
- }
- }
复制代码
前台:
- <script type="text/javascript">
- window.onload = function () {
- alert(FpSpread1.Cells(0, 0).CellType2);
- alert(FpSpread1.Cells(0, 1).FpCellType);
- }
- </script>
复制代码 |