I am trying to fill a span with the record count of my grid view. It kinda of works. But here is the thing. I have added paging displaying 10 records per page. The record count is for each page. So it keeps being 10, until the last page where there are 3 records and the record count is three.
I need the record count to reflect the whole recordset not just the records per page. The simple code I am using at the mo is this
int RecCount = GridView1.Rows.Count;
string WrRecCount = RecCount.ToString();
totalRecords.InnerHtml = WrRecCount;