GrapeCity MultiRow Windows Forms Documentation
Displaying Numeric Value Separator (NumericUpDownCell)

The method to display the numeric value separator for the numeric up down cell is similar to that of the System.Windows.Forms.NumericUpDown control. By setting the NumericUpDownCell.ThousandsSeparator property to True, numeric values get displayed with the appropriate numeric separator depending upon the culture that has been set in the operating system.

The NumericUpDownCell.Style.Format property cannot be used.

Designer Settings

Use the following steps to set the separator.

  1. Add the numeric up down cell to a row (for example: numericUpDownCell1).
  2. Select numericUpDownCell1 and set the NumericUpDownCell1.ThousandsSeparator property to True in the Properties window.

Using Code

This example creates a numeric up down cell and sets the ThousandsSeparator property.

[VB]

Imports GrapeCity.Win.MultiRow

Dim numericUpDownCell1 As New NumericUpDownCell()
numericUpDownCell1.Name = "numericUpDownCell1"
numericUpDownCell1.ThousandsSeparator = True
numericUpDownCell1.Value = 100000

GcMultiRow1.Template = Template.CreateGridTemplate(New Cell() { numericUpDownCell1 })
GcMultiRow1.RowCount = 10

[CS]

using GrapeCity.Win.MultiRow;

NumericUpDownCell numericUpDownCell1 = new NumericUpDownCell();
numericUpDownCell1.Name = "numericUpDownCell1";
numericUpDownCell1.ThousandsSeparator = true;
numericUpDownCell1.Value = 100000;

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

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options