Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Import To GRID with formula in cell
posted

HI,

 

I am trying to Import from excel into grid.If a cell has formula and if i read the cell value I am getting the formula not the cell value.

 foreach (WorksheetCell cell in w.Rows[iRow].Cells)

{

if (cell.Value != null && cell.Value.ToString().Length > 0)

{

cell.Value-------Returns the formula but not the value of the cell.

}