Search code examples
stringdevexpressseparatorxtrareporttablecell

Devexpress XRtableCell thousand separator?


How can I add thousand separator for specifices number cells in XRTable? I don't need the currency unit or the decimal dot like this:

 xrTableCell35.DataBindings["Text"].FormatString = "{0:C}";

Solution

  • You can use «The Numeric ("N") Format Specifier»:

    xrTableCell35.DataBindings["Text"].FormatString = "{0:N0}";
    

    Or you can use «The "," Custom Specifier»:

    xrTableCell35.DataBindings["Text"].FormatString = "{0:#,#}";