DataFormatString list
Why in the name of cock is it so hard to find a decent list of DataFormatString values for BoundField properties? I'm sticking this here so that I have something to refer to, and can add to it in future if I find more stuff.
So, for DataFormatString="{0:whatever}", whatever can be any of the following:
Numbers
c - currency £#.##
d - decimal ##.##
e - string of e+###
f - string ##.##
g - fixed point or scientific notation
n - #,###.##
p - percent
x - hex
DateTime
d - short date
D - long date
t - short time
T - long time
f - full datetime and short time
F - full datetime and long time
g - short date and short time
G - long date and long time
m - month
edit - loads more here at msdn
edit 2 - holycrap, found loads now.
standard numeric
custom numeric
standard date
custom date
enumeration
1 comment:
What does it all mean? Damn my Microsoft Engineering skills in servers and being fairly drunk...asp was so easy, but boundfield? bound to what, a wheat field, a FIELD OF WHEAT! WHATEVER NEXT MICROSOFT?!?!!
P.s. the above is in a string dataformat...
Post a Comment