title: How to get proper row index values of grid view after sorting
body: <p>I have an asp.net application in which I am using a grid view. Paging and sorting are applied to the grid view. One action what I am doing is on click of any grid view row, am getting the column values of the selected row and redirecting to the other page. </p>
  
  <p>The problem is after the grid view is sorted, if I click on any of the row in ayy page (paging index), am getting only first page values even though the visible row is different.</p>
  
  <p>I am getting the row values in <code>gridview_rowcreated()</code> method and putting in some variable. In sorting scenario, before sorting is done, the <code>gridview_rowcreated()</code> method is called but not after the sorting is done.</p>