我有以下查询应该过滤掉给定组域中的空值,但遗憾的是当源数据集在该字段中包含空值时返回一个空对象:
Dim SelectQuery = From q1 In loadedData.data.AsEnumerable
Order By q1(aGroupField)
Where Not IsDBNull(q1(aGroupField))
AndAlso q1(aGroupField) <> ""
Select New With {.groupField = q1(aGroupField)}