[DotNetDevelopment] Re: Number format

2009-03-31 Thread Cerebrus
I think this transformation is best done before the rendering phase itself, either during the GridView ItemDataBound event or as you have suggested in Option 1. Doing it declaratively (Option 2) is prone to problems, at best. On Apr 1, 12:20 am, Joe Enos wrote: > I'd suggest one of the following

[DotNetDevelopment] Re: Number format

2009-03-31 Thread Joe Enos
I'd suggest one of the following: 1) Extend your object so you can have a property that formats your number appropriately, and use that property instead of the normal one. For example, assuming the original property name is Cost, build a CostExtended string property that formats your number the