When we use LOADFROMDATATABLE method to export the datatable into excel file, if the datatable has NULL value in it the excel file shows empty cells. But when we select only those empty cells, it is showing the count at the bottom.
Normally in the excel file, if we select the empty cells it wont show the count at the bottom.
Appreciate if anyone could help me on this issue.
Thanks in Advance.
Sathish Selva
Comments: I made it work by changing few lines of code in the class file ExcelRangeBase.cs inside the region LOADFROMDATATABLE ``` foreach (DataRow dr in Table.Rows) { foreach (object value in dr.ItemArray) { if (value != null && value.ToString() != string.Empty) { _worksheet._values.SetValue(row, col++, value); } else { col++; } } row++; col = _fromCol; } ```
Normally in the excel file, if we select the empty cells it wont show the count at the bottom.
Appreciate if anyone could help me on this issue.
Thanks in Advance.
Sathish Selva
Comments: I made it work by changing few lines of code in the class file ExcelRangeBase.cs inside the region LOADFROMDATATABLE ``` foreach (DataRow dr in Table.Rows) { foreach (object value in dr.ItemArray) { if (value != null && value.ToString() != string.Empty) { _worksheet._values.SetValue(row, col++, value); } else { col++; } } row++; col = _fromCol; } ```