public void CreateNumberCell4() { NumberCellType numberCellType1 = new NumberCellType(); numberCellType1.MaxValue = 100; numberCellType1.MinValue = 0; numberCellType1.FieldSet = new GrapeCity.Windows.SpreadGrid.Editors.NumberFieldSet("###,###,##0.00,,,,-"); numberCellType1.SpinMode = GrapeCity.Windows.SpreadGrid.Editors.NumberSpinMode.Value; numberCellType1.SpinIncrementValue = 5; this._gcSpreadGrid1[0, 0].CellType = numberCellType1; }
Public Sub CreateNumberCell4() Dim numberCellType1 As New NumberCellType() numberCellType1.MaxValue = 100 numberCellType1.MinValue = 0 numberCellType1.FieldSet = New GrapeCity.Windows.SpreadGrid.Editors.NumberFieldSet("###,###,##0.00,,,,-") numberCellType1.SpinMode = GrapeCity.Windows.SpreadGrid.Editors.NumberSpinMode.Value numberCellType1.SpinIncrementValue = 5 Me._gcSpreadGrid1(0, 0).CellType = numberCellType1 End Sub