Link to home
Start Free TrialLog in
Avatar of mathieu_cupryk
mathieu_cuprykFlag for Canada

asked on

Need to format a column text in excel using C#. Easy question.

I have the following:

 excelWorkSheet.Cells[count, 4] = dr.ItemArray[0].ToString();        
In dr.ItemArray[0].ToString();            there is 01
but when I see it in the excel it shows 1.

How can I fix this?
           
ASKER CERTIFIED SOLUTION
Avatar of wernerteun
wernerteun
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial