Export to excel from ASP.Net - Decimal places for numbers < 1000

T

Thejaswini

have a page wherein the contents of a datagrid are
exported to an excel file. All the columns are correctly
displayed in excel except for the number columns. The
formatting string for the number column is {0:#,##0.00;
(#,##0.00);0.00}. The data is formatted for all numbers
exceeding 1000 but for any number below 1000 the data is
displayed as 1000 and not with 0's in the decimal places.
(displayed as 999 instead of 999.00).
 

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

Top