title: Check whether an Object is empty or null
body: <p>I have a <code>DataGridView</code> and added a column called <code>SellQty</code> and a <code>Checkbox</code> at index 0. User has to enter <code>int</code> value when he selects a <code>checkbox</code>. If not I am showing a message to enter the value. Now the problem is I am getting the value from the <code>SellQty</code> cell and storing it in an <code>object</code> and checking whether it is <code>null</code>.</p>
  
  <pre><code>object SellQty = gvProductBatch.Rows[i].Cells["txtSellQty"].Value;
  if(SellQty!=null)
      // do something
  
  else 
      // ..Show message.
  </code></pre>
  
  <p>This works fine. But the problem is when the user enters a value and deletes it, the value stored in it is <code>{}</code> i.e. empty. I would like to know how to check an object is empty. I have googled for the same but didn't find answer to handle empty object. All results were for if object is null.</p>