 <p><em>null</em> value from database has its own special type:</p> <pre><code>if (r["Varandas"] != DBNull.Value &amp;&amp; r["Varandas"] != null) </code></pre> <p>To make it more elegant you can write some simple function or even extension for the DataRow class.</p>