Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: DisplayFormat field attribute

$
0
0
Hello!

Does ClosedXML support attribute [DisplayFormat(DataFormatString = "...")]?

For example, I have the class
public class ReportItem
{   
    [Display(Name = "Variance percent")]
    [DisplayFormat(DataFormatString = "{0:p}")]
    public decimal VariancePercent
}
[Display(Name = "Variance percent")] attribute works perfectly, but DisplayFormat doesn't. Any ideas?

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>