I'm not sure how best to explain this but please bear with me.
I have a datasource being pulled in to a gridview from an xml file.
I have paging setup on this with the ability to select a row in the gridview and once selected it should populate text boxes with the information from the dataset/xml.
However my problem is that when I select a row, it only selects from the first page of the gridview. So I could be on page 5, and no matter which one I select on page 5 it will pull the data up from the first few pages.
There is the basics of my code that is doing that.
On the SelectedIndexChanged event.
txtCompany.Text = ds.Tables("BiddersList").Rows(GridView1.SelectedIndex).Item("Company_Name")
So if I'm on page 5, or whatever, it is still reading the selected row as maybe 1 or 2, and pulling that in from the dataset, instead of pulling in row 10.
Can anyone give me a hand with this I'm getting myself confused and probably not relaying it properly. |