I've got gridview bounded to some sqldatasource.
In first column i have edit button and in GridView_SelectedIndexChanged Event I build some querystring depending on row.
I get this row like this : GridViewRow row = GridView.SelectedRow;
It works fine BUT
From time to time I filter gridView (by changing selectcommand in sqldatasource)
Filtering works fine but GridViewRow row = GridView.SelectedRow gets a row like there were all rows visible.
Example: (When i click on 2 row)
Without filters :
1
2
3
4
row.Cells[1].Text - i get 2 OK!
With filters :
1
4
row.Cells[1].Text - i get 2 <- Maybe you know how to handle that ?
row.Cells[1].Textstill gives me '2' - el vis