Rounding floor in DataFormatString

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?ISO-8859-1?B?RulybmFz?=

    Rounding floor in DataFormatString

    Hello all,

    I'm using a GridView to display some db data.

    on field has the number 23.89 ... I'd like to show only "23" in the
    DataGridView, without the decimals... If I use {0:N0} in the
    DataFormatStrin g, it returns "24".. I need to round it floor.

    How could I do this??

    Many thanks...
Working...