GrapeCity MultiRow for Windows Forms 11.0J
小数点以下の桁数表示


数値型セル(NumericUpDownCell)の値に小数点以下の桁数を表示する方法はSystem.Windows.Forms.NumericUpDownコントロールと同じです。NumericUpDownCell.DecimalPlacesプロパティに表示する小数点以下の桁数を設定します。

デザイナによる設定
  1. 行(Row)に数値型セルを追加する。(例:numericUpDownCell1)
  2. numericUpDownCell1を選択し、プロパティウィンドウでnumericUpDownCell1.DecimalPlacesプロパティを3に設定する。
コーディングによる設定
Imports GrapeCity.Win.MultiRow

Dim NumericUpDownCell1 As New NumericUpDownCell()
NumericUpDownCell1.Name = "NumericUpDownCell1"
NumericUpDownCell1.DecimalPlaces = 3
NumericUpDownCell1.Value = 10.23

GcMultiRow1.Template = Template.CreateGridTemplate(New Cell() {NumericUpDownCell1})
GcMultiRow1.RowCount = 10
using GrapeCity.Win.MultiRow;

NumericUpDownCell numericUpDownCell1 = new NumericUpDownCell();
numericUpDownCell1.Name = "numericUpDownCell1";
numericUpDownCell1.DecimalPlaces = 3;
numericUpDownCell1.Value = 10.23;

gcMultiRow1.Template = Template.CreateGridTemplate(new Cell[] { numericUpDownCell1 });
gcMultiRow1.RowCount = 10;

   
関連トピック

 

 


© 2008 GrapeCity inc. All rights reserved.