I am importing excel sheet to DataTable using oledb connection as below.
private static DataTable UploadExcelSheet(string fileName)
{
DataTable u
Expanding on vc's answer, this will remove all rows that which each of it's columns contain either nothing or white space:
dataTable = dataTable.Rows.Cast().Where(row => !row.ItemArray.All(field => field is System.DBNull || string.Compare((field as string).Trim(), string.Empty) == 0)).CopyToDataTable();