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