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 str开发者_高级运维ing to show 0 with text after it?
try 0 Minutes
For more info, see Custom Numeric Format Strings, Zero placeholder vs. Digit placeholder.
精彩评论