c# - How can i change excel cell value -


I am exporting Excel data from Gridview. It is my exported column:

  The key to posting is 50 50  

but the column looks like this in Gridview:

  POSTING KEY 01 50 50  

After export, Excel converts my string value to numerical form. But I would like to see "01" how can I change the Excel cell type or cell value before I save the file?

From Excel, highlight column or cell, right click and under the "Number" tab, Select "Format Room", click on "Custom" under category. In the Type: Key in the textbox, "00"


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -