Custom Format Strings for BoundField column

A

Adam Right

in gridview how can i custom format a decimal value for BoundField column ?

i want to set
125.25000 ---> 125,25
5.20000 -->5,2
45.00000 --> 45

I am using DataFormatString="{0:#,#.##}" but it does not work ..

any idea ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top