title: How can I register a control with ClientScriptManager.RegisterForEventValidation
body: <p>I have gridview which I need to trigger inline editing from its code behind class.
  How to implement ClientScriptManager.RegisterForEventValidation.</p>
  
  <pre><code>&lt;asp:GridView ID="gridViewTest" runat="server" 
          Height="145px" Width="369px" onrowdatabound="gv_RowDataBound" OnRowEditing="gv_RowEditing"&gt;
      &lt;/asp:GridView&gt;
  
     protected void gv_RowEditing(object sender, GridViewEditEventArgs e)
      {
          gridViewTest.EditIndex = e.NewEditIndex;
      }
  </code></pre>