I have a row in the excel which has some data.
Now I need to find the count of the not null cells from the row.
From the below example I need the output as 6.
I tried readrow and got the values, but not having the idea how to eliminate the null values.
Could you guys please give a suggestion how to do it.
DataTableName=DataTableName.Rows.Cast(Of DataRow)().Where(Function(row) Not row.ItemArray.All(Function(field) field Is DBNull.Value Or field.Equals(“”))).CopyToDataTable()