回复 3楼xiafu568的帖子
你好,
我使用以下代码测试,没能重现问题,能否发测试 Demo 到论坛调试?
- private void Form1_Load(object sender, EventArgs e)
- {
- GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
- datecell.MaxDate = new System.DateTime(9999, 12, 31);
- datecell.MinDate = DateTime.Now;
- datecell.EditMode = GrapeCity.Win.Spread.InputMan.CellType.EditMode.Overwrite;
- fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;
- fpSpread1.Sheets[0].Cells[0, 0].Value = DateTime.Now;
- this.fpSpread1.Sheets[0].Columns[0].Width = 200;
- }
复制代码 |