title: Using GridRecord Event Args
body: <p>I'm new to asp.net and I have a condition where when I click a button i need to use Gridrecord event args.</p>
  
  <pre><code> protected void yesclicked(object sender, GridRecordEventArgs e)
  {
      NCDCPoint ncdc = new NCDCPoint();
  
      SaveAllColumnFields(ref ncdc, e);
      mCDC.NCDCPoints.InsertOnSubmit(ncdc);
      mCDC.SubmitChanges();
      //do this after insert because it wont work until the ncdc object
      //has been assigned an ID
      SaveAllDynamicFields(mCDC, ref ncdc, e);
      mCDC.SubmitChanges();
      Grid1.CurrentPageIndex = 0;
      //SaveAllColumnFields(ref ncdc, e);
  }
  </code></pre>
  
  <p>My grid mark up:</p>
  
  <pre><code>           &lt;obout:Grid runat="server" ID="Grid1" AutoGenerateColumns="false" PageSize="10" EnableRecordHover="True"
                  Width="80%" AllowPaging="true" AllowManualPaging="true" AllowPageSizeSelection="false"
                  CurrentPageIndex="0" OnInsertCommand="InsertRecord" OnDeleteCommand="DeleteRecord"
                  OnUpdateCommand="UpdateRecord" EnableTypeValidation="false" OnRebind="RebindGrid"
                  CallbackMode="true" Serialize="true" OnRowDataBound="Grid1_RowDataBound" AllowColumnReordering="true"&gt;
  </code></pre>
  
  <p>In .aspx age</p>
  
  <pre><code>       &lt;obout:OboutButton ID="yesbutton" runat="server" Text="yes" OnClick="yesclicked"&gt;&lt;/obout:OboutButton&gt;
         &lt;obout:OboutButton ID="nobutton" runat="server" Text="no" OnClick="noclicked" /&gt;
  </code></pre>
  
  <p>I used obout button but  anormal button is also acceptable.
   The thing has been that when I use Gridrecordeventargs, no overload of delegate matches system handler. However when I use EventArgs, I cannot use gridrecordeventargs.So, can u let me know how to handle this?</p>