WinUI コントロール
数値セル
コントロール > FlexGrid > > エディタ > 数値セル

FlexGrid, by default, uses the numeric editor to edit the numeric data, that is, when the data type is set to any of the numeric types such as Int and Decimal.

Format numeric cell

To format the data in a numeric cell, FlexGrid provides the Format property of Column as well as Row object. In case of the formats that support decimal values such as numeric, currency and exponential, FlexGrid displays values up to two decimal places by default.

C#
コードのコピー
// 数値セルを書式設定します
flexGrid1.Columns["OrderTotal"].Format = "c2";