Display Integer without decimal

P

pargat.singh

Hi Everyone:

I have a grid view which is bound to dataset from oracle store
proceduer. I have a number filed but it is showing in decimal like
0.0000 or 24.0000 etc. Can someone please tell me how can show o or 24
only without decimal. I tried dataformatstring prorerty of bound field
but no luck.

Thanks in advance.

Pargat
 
P

pargat.singh

You probably forgot to include:

HtmlEncode="false"

in the bound column tag

Thanks. I am getting an error when i set DataFormatString="{0:D}"
HtmlEncode="false".
 

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,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top