I have the following code
foreach (DataRowView dr in Data) { if (dr == System.DBNull.Value) { nedID = 1; } }
but I get the following error The operator == cannot be applied to operands of type System.Data.DataRowView and System.DBNull
please can someone advise me how can I check if the value is null or DBNULL
c11ada
source share