I have a page that display alphabets A-Z.
[A B C D E F G H I J K L M N O P Q R S T U V W X Y Z]
when the page loads, it displays data with surname that starts with A. You can click on the other alphabets to display accordingly
1. if i select "B" and the number of pages is 3 on the gridview and i click on page 3,
I then click on another alphabet "V" that has 3 pages too,my grid shows
records from page 3 and makes page 3 active. I will have to go and click on page 1
whenever i click on any alphabet i want it to start on page 1 and not
any other page and page 1 should be the active page not tracking my
previous page numbers.
Here is the code handling this. I will post more code as needed.
protected void sdgridview_PageIndexChanging(object sender, GridViewPageEventArgs e)
sdgridview.DataSource = SortDataTable(sdgridview.DataSource as DataTable, true);
sdgridview.PageIndex = e.NewPageIndex;
catch (Exception ex)