I have a Gridview where I have functionality of Update row. Upon clicking update row a text box is generated in the row where user can update the record for the particular row. However, if the user selects row 2 of gridview( page=1)for update and then clicks on say page 4 without saving. Page 4 is now displayed and row 2 is enabled for update on page 4. Moreover, if the user selects row 2 of gridview (page=1) then clicks on say page 4. Page 4 is now displayed and row 2 is highlighted, so to the User it looks like they have row2 of page 4 selected, I need to have the selectedrow move with the paging to not confuse users. Below is my Gridview defination:
<asp:GridView ID="grdDisountList" runat="server" PersistedSelection="false" CellPadding="4" ForeColor="#333333" GridLines="None"
AutoGenerateColumns="false" Width="100%" OnRowEditing="EditRow" OnRowCancelingEdit="CancelEditRow"
OnRowUpdating="UpdateRow" DataKeyNames="Discount_Id" AllowPaging="true" OnRowDataBound="grdDisountList_RowDataBound"
PageSize="15" OnPageIndexChanging="OnPageIndexChanging" OnRowCommand="SelectRow" OnSelectedIndexChanged="grdDisountList_SelectedIndexChanged">
Any Ideas?