Home Forums WinForms controls Xceed Grid for WinForms Trailing zeros Reply To: Trailing zeros

User (Old forums)
Member
Post count: 23064

It does not help! I still get many zeros…

How to reproduce it:
 
I have DataSet with DataTable with only one field (called Test) which has System.Decimal data type.

Then I bind grid to this DataTable in designer.

Then I do the folowing in code:

        private void Form1_Load(object sender, EventArgs e)
        {
            Xceed.Editors.WinNumericTextBox EditorTemplate = new Xceed.Editors.WinNumericTextBox();
            EditorTemplate.DisplayFormatSpecifier = “#.####################”;
            colTest.CellEditorManager = new Xceed.Grid.Editors.NumericEditor(EditorTemplate);

            TestDataSet.TestDataTableRow Row = TestDataSet.TestDataTable.NewTestDataTableRow();
            Row.Test = 10.00000000000000M;
            TestDataSet.TestDataTable.Rows.Add(Row);
        }

 
As I understand, DisplayFormatSpecifier here means only format for displaying and it does not work when control comes to edit mode 🙁

Imported from legacy forums. Posted by Nazar (had 462 views)