title: Get index on row deleting (devexpress ASPxGridView )
body: <p>Today I try to get the current index when clicking on a <code>CommandColumnCustomButton</code> button delete. I have a GridView populated with some values at runtime, and here is how I do to add "delete" button for each row of this control :</p>
  
  <pre><code>GridViewCommandColumn cmdCol = new GridViewCommandColumn();
  cmdCol.Caption = "Edition";
  GridViewCommandColumnCustomButton cDelBtn = new GridViewCommandColumnCustomButton();
  
  cDelBtn.ID = "supprimer";
  cDelBtn.Text = "supprimer";
  
  cDelBtn.Visibility = GridViewCustomButtonVisibility.AllDataRows;           
  
  cmdCol.CustomButtons.Add(cDelBtn);
  gridView_test.Columns.Add(cmdCol);
  </code></pre>
  
  <p>It simply create a column with at each row a button which allows to delete the row.</p>
  
  <p>Right after the last line of the code above, I added a line which precise to do something at click on those "delete" button. Here is the code to do so :</p>
  
  <pre><code>gridView_test.ClientSideEvents.CustomButtonClick = "function (s, e) { alert( e.FocusedRowIndex ); }";
  </code></pre>
  
  <p>The function takes two argument (like the event handler basic function in ASP) : s is the "sender", which represent the object (there, it is the "delete" button), and e is the "event". I tried so to catch the current index of the event but it doesn't works, displaying me "undefined". </p>
  
  <p>Please see below an example of the working process I would like to implement :</p>
  
  <pre><code>PRICE  |   Edit
    5    |  delete
    18   |  delete
  </code></pre>
  
  <p>I would like, when clicking on the "delete" button from the second line, to display "1", which is the index of the array which represent the GridView (because as you know arrays begin from index 0...).</p>
  
  <p>Some knows how can I could do this in the javascript part of my function right below ? Or maybe an alternative exists ? </p>
  
  <p><strong><em>Further Informations :
  DevExpress version : 14.1
  Control : ASPxGridView
  IDE : Visual Studio 2013
  Langage : ASP.net WebForms</em></strong></p>