MultiRow Windows Forms > Developer's Guide > Using MultiRow > Cell Types > NumericUpDownCell > 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. |
Use the following steps to set the separator.
This example creates a numeric up down cell and sets the ThousandsSeparator property.
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 |
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; |