Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
from database i have values like

100.000
111.00

and its binding without decimal like

100
111

can you any one help?

What I have tried:

i have tried but not getting result
Posted
Updated 6-Jun-19 0:44am
v5
Comments
Richard MacCutchan 4-Jun-19 9:13am    
Are you binding the values, or converting them to strings, and binding the strings?
Member 14357201 4-Jun-19 9:33am    
binding the data i need to bind default values as same in the database include .00
Richard MacCutchan 5-Jun-19 3:53am    
The .00 is only relevant when you want to display the value.
Member 14357201 6-Jun-19 1:32am    
hi its getting the values from database like 2.00 but it not showing to datatable
when its not .0 its showing data like from data base 2.11 its showing to datatable same like 2.11
but when comes to .00 not showing

1 solution

The question regarding data table "binding" is meaningless.

What's done with the "data" (in calculating, reporting, viewing; i.e formatting) is when the question of data types and precision comes up.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900