Hi,
I have a Datable that I have built from excel data, but sometimes excel returns rows in which all the fields are null.
I'd like to filter these out generically without regard for column names.
I think Linq would do this nicely but having a bit of trouble getting this to happen.
So far this is what I got:
var nonemptyrows = from r in table.AsEnumerable()
from f in r.ItemArray
where f != null
select r;
But it's not quite there. Anyone see what I'm missing or if I'm on the wrong track?
Thanks in advance!