默认是none 改成 text后能出现 MaxLength 这时设置保存后,运行了下,长度设置没什么效果
在对应的.Designer.vb查看了下,有如下代码:
TextCellType11.MaxLength = 4
Me.FpSpreadView_Sheet1.Columns.Get(0).CellType = TextCellType11
Me.FpSpreadView_Sheet1.Columns.Get(0).Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
Me.FpSpreadView_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left
Me.FpSpreadView_Sheet1.Columns.Get(0).Width = 55.0!
难道一定要在后台代码里设置?
啊,发错板块了,这个要发在 Spread for WinForm & ActiveX 板块
版主帮挪一下 |
|