First you need to unpage your grid view.
Try this:
this.gdvData.AllowPaging = false;
this.gdvData.AllowSorting = false;
this.gdvData.EditIndex = -1;
this.RefreshGrid();
GridViewRow FirstRow = gdvData.Rows[0];
GridViewRow LastRow = gdvData.Rows[gdvData.Rows.Count - 1];
this.gdvData.AllowPaging = true;
this.gdvData.AllowSorting = true;
this.gdvData.EditIndex = -1;
Fist you will un-page your gridview, get the last row and then page it again.
I hope this will help you!