Reputation: 127603
I have a data table bound to a data grid view, one of the columns is a list of int32s. What I would like is to have the column display the number with the word minutes after it. I used the cell style builder and in the format i put # Minutes
, this works great however rows that have a 0 value does not display anything in the # placeholder so it looks like " Minutes" in the column.
How do I get a custom formatted string to show 0 with text after it?
Upvotes: 0
Views: 1827
Reputation: 57823
try 0 Minutes
For more info, see Custom Numeric Format Strings, Zero placeholder vs. Digit placeholder.
Upvotes: 4