How to disable a row in gridview?
<p>In have to disable a row in which chechbox is checked.I have tried it in RowDataBound event by using following code but it shows error <code>Object reference not set to an instance of an object</code>.</p>

<pre><code>  CheckBox cbAttachClrReq = (CheckBox)gvEntity.FindControl("chkAdd");

  if (cbAttachClrReq.Checked)
  {
      this.gvEntity.Rows[e.Row.RowIndex].Enabled = false;
  }
</code></pre>
