I have a DataTable(Dt1) with 6 Columns. I want to convert “Quantity” Column into an array…
So I have tried Dt1.AsEnumerable.Select(Function(a) a.Field(Of String)(“Quant Status”).ToString).ToArray() and it worked.
But, Some columns have an empty rows… as below
So I’m getting an Null Exception Error. How can I overcome this issue ? Please Help me.