title: How to hide row in GridView if certain column is empty?
body: <p>I have a <code>GridView</code> that displays some information about a job and one of the options in the <code>GridView</code> is to select a reason. If a reason isn't selected then I don't want to display that row in the <code>GridView</code>. How do I check if there is a value in the Reason column, and if its empty how do I hide that row?</p>
  
  <pre><code>private GridView BuildDebriefGridView()
      {
          GridView gv = new GridView();
          gv.AutoGenerateColumns = false;
          //gv.RowDataBound +=
          gv.Columns.Add(new BoundField { HeaderText = "Job No", DataField = "JobNo" });
          gv.Columns.Add(new BoundField { HeaderText = "Qty Rcvd", DataField = "QtyRcvd" });
          gv.Columns.Add(new BoundField { HeaderText = "Reason", DataField = "Reason" });
          gv.Columns.Add(new BoundField { HeaderText = "Comment", DataField = "Comment" });
          gv.Attributes.Add("style", "width:100%");
  
          return gv;
      }
  </code></pre>