Home Forums WinForms controls Xceed Grid for WinForms Formatting for numbers Reply To: Formatting for numbers

User (Old forums)
Member
Post count: 23064

Use a format provider like so

Column c = grid.Columns[“Blah”]

System.Globalization.NumberFormatInfo numformat = new System.Globalization.NumberFormatInfo();

numformat.CurrencySymbol = String.Empty;
numformat.CurrencyPositivePattern = 0;
numformat.CurrencyNegativePattern = 1;

c.FormatProvider = numformat;
c.FormatSpecifier = “c”;

Peter Henry
IT Revolution

Imported from legacy forums. Posted by Peter (had 328 views)