spread17
Private Sub Form27_Load(sender As Object, e As EventArgs) Handles MyBase.LoadDim NumberCellType1 As FarPoint.Win.Spread.CellType.NumberCellType = New FarPoint.Win.Spread.CellType.NumberCellType()
NumberCellType1.MaximumValue = 999.0R
NumberCellType1.MinimumValue = 1.0R
Me.FpSpread1_Sheet1.Columns.Get(0).CellType = NumberCellType1
End Sub
Private Sub FpSpread1_EditModeOn(sender As Object, e As EventArgs) Handles FpSpread1.EditModeOn
DirectCast(FpSpread1.EditingControl, CellType.GeneralEditor).Value = 0
End Sub
单元格的最小值是NumberCellType1.MinimumValue = 1.0R
但是 DirectCast(FpSpread1.EditingControl, CellType.GeneralEditor).Value = 0
更新的时候FpSpread1.ActiveSheet.Cells(0, 0).Text为啥也更新成了0
怎末能让这种MinimumValue 大于DirectCast(FpSpread1.EditingControl, CellType.GeneralEditor).Value的时候单元格text不更新
你说的DirectCast是什么东西?我没看明白
如果需要协助调查的话,请上传一个复现问题的demo上来,并说明复现步骤 Richard.Ma 发表于 2024-11-5 18:54
你说的DirectCast是什么东西?我没看明白
如果需要协助调查的话,请上传一个复现问题的demo上来,并说明复 ...
DirectCast跟Ctype差不多意思 还是麻烦上传一个复现所说问题的demo项目,我帮你看看原因
页:
[1]