c# - Data format issue. Export GridView to Excel -


there string (1008901023816550000000) in gridview somehow saved scientific number (1.0089e+21) in excel when exported gridview excel.

i using .net 4.0.

here tried, didn't solve problem:

  1. added dataformatstring="{0:g}" boundcolumn tag.
  2. set style after rendercontrol called.

    string style = @" .text { mso-number-format:\@; } ";

can shed light on problem?

presuming using csv file perform export:

this quirk of excel that's hard shake. idea know of try using format inside csv file:

="1008901023816550000000" 

this force formula returns desired text.


Comments

Popular posts from this blog

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

apache - Add omitted ? to URLs -

php - How can I stop spam on my custom forum/blog? -