1
我正在查询datagridview,它工作得很好,除非其中一个单元格没有任何内容(dbnull)。如何过来这个?LINQ错误类型DBNull列
异常:未为'DBNull'类型定义运算符'='并键入'DBNull'。
Dim query = From row As DataGridViewRow In DataGridView1.Rows _
Where row.Cells(SelectedColumnIndex).Value = filter _
And row.Visible = False _
Select row Distinct
@ user704430:这真是棒极了!谢谢。 – TroyS 2011-04-29 15:08:56
为我解决了这个问题! – Mohgeroth 2011-06-16 15:48:22