M
msnews.microsoft.com
Hi Every Body,
I have tow columns in the database, the third
columns the division of both columns. The first two columns are both of type
decimal,
when the third columns get value its type is also decimal,
for example
first col value 34.00
second col value 34.00
third col value 34.00/34.00 = 1.000000000
Now when i am trying to bind that value with asp.net datagrid, I am try to
round it using Math.Round() function to precision of 2
for example
Math.Round(DataBinder.Eval(Container.DataItem,"third
Col"),2)
At this point it generate error and all fields which are binded after that
field are not bind properly
Regards
Muhammad Jamil Nawaz
I have tow columns in the database, the third
columns the division of both columns. The first two columns are both of type
decimal,
when the third columns get value its type is also decimal,
for example
first col value 34.00
second col value 34.00
third col value 34.00/34.00 = 1.000000000
Now when i am trying to bind that value with asp.net datagrid, I am try to
round it using Math.Round() function to precision of 2
for example
Math.Round(DataBinder.Eval(Container.DataItem,"third
Col"),2)
At this point it generate error and all fields which are binded after that
field are not bind properly
Regards
Muhammad Jamil Nawaz