i have a working DataGrid1 whose source is XML file.
lately, i realized that i could not able to use DateFormatString as the values returned from XML are all strings. (pls correct me if wrong)....below code doesn't apply any format
<asp:BoundField HeaderText="Start QTY" DataField="start_qty" DataFormatString="{0:N3}" ApplyFormatInEditMode="True" HtmlEncode="False"/>
can you pls suggest me how to convert from string to int or decimal
hi Tuyau2poil,
i tried ur code ...though the function is getting called n executed.....output remains the same.(unformated).
sample values from XML ...are as follows.....
<start_qty>0.000000000000000e+000</start_qty>
<end_qty>0.000000000000000e+000</end_qty>
<unrealized>1.595800080000000e+004</unrealized>
As you can see, i want to convert these values to decimal currency, if possible
kishan66
ASKER
oops !! i have to change from scientific to decimal..
i tried ur code ...though the function is getting called n executed.....output remains the same.(unformated).
sample values from XML ...are as follows.....
<start_qty>0.0000000000000
<end_qty>0.000000000000000
<unrealized>1.595800080000
As you can see, i want to convert these values to decimal currency, if possible