title: ASP.Net check value with DBNULL
body: <p>I have the following code</p>
  
  <pre><code>foreach (DataRowView dr in Data)
          {
              if (dr == System.DBNull.Value)
              {
                  nedID = 1;
              }
          }
  </code></pre>
  
  <p>but i get the following error
  Operator <code>==</code> cannot be applied to operands of type <code>System.Data.DataRowView</code> and <code>System.DBNull</code></p>
  
  <p>please can some one advice me on how i can check if the value is null or DBNULL</p>