开发者

Custom formated string does not display 0

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜