Cannot implicitly convert type 'double' to 'string''

  • Thread starter Thread starter Mendel Lim
  • Start date Start date
M

Mendel Lim

Guest
for (iRow = 10; iRow <= xlWorkSheet.Rows.Count; iRow++)

{

if (xlWorkSheet.Cells[iRow, 10].value == null)

{

break;

}
else

{

string[] row = new string[] { xlWorkSheet.Cells[iRow, 10].value,

xlWorkSheet.Cells[iRow, 11].value.ToString(),

xlWorkSheet.Cells[iRow, 12].value };

dataGridView1.Rows.Add(row);

}

}

Any idea how to fix?

Continue reading...
 
Back
Top