0

I'm developing a web application. I'm facing a problem when exporting the values in the grid to excel. I have declared a column with data type as string but the column holds the integer values. When i open the exported excel, the string column is displayed as integer and the leading '0' in that field gets deleted. how to handle this.

Eg. the filed contains the vl

ranga nathan
  • 163
  • 3
  • 17

1 Answers1

0

export the values with surrounding ' or " symbols, then it's taken as a string

Like:

col1;col2;col3
'001';'002';'003'
Jiří Herník
  • 2,412
  • 1
  • 25
  • 26