title: Property value is not valid typed data set
body: <p>I am using typed data set in my application and I have a data table with two columns which are of <code>System.Int32.AllowDBNULL = true</code> and NULLVALUE = throw exception and default value = 1. I am using this property of datatable in my code like this:</p>
  
  <pre><code> if (rr.ForenameStatus != -1 &amp;&amp; rr.ForenameStatus == 0)
  {
  
  }
  </code></pre>
  
  <p>but I am getting this error:</p>
  
  <blockquote>
    <p>The value for column 'ForenameStatus' in table 'Registrant' is DBNull.</p>
  </blockquote>
  
  <p>I tried to change <code>NULLVALUE</code> of column to <code>NULL</code> or empty in dataset properties but I get error: </p>
  
  <blockquote>
    <p>property value is not valid</p>
  </blockquote>
  
  <p>I tried using this:</p>
  
  <pre><code> if (rr.ForenameStatus != System.DBNull.Value &amp;&amp; rr.ForenameStatus == 0)
                          {
  
                          }
  </code></pre>
  
  <p>but It says Operator != can not be applied to operands of int and dbnull</p>
  
  <p>Please suggest me solution to this.</p>