[Utilizing Visual Studio, ASP.NET, C#, and IE8]
I have a pretty standard gridview inside an update panel. Scriptmanager on MasterPage. UpdatePanel is set to UpdateMode: Always.
However, I have it now fairly smooth where my Add to SQL database and databind functions are smooth and you simply see a new row added to the gridview. When I [Delete], the row is quickly deleted and the input submission Table underneith the gridview moves up automatically to fill in the now missing row.
The view essentially stays in the same place during all these functions and makes for a smooth operation.
However, when using the Gridview>Edit Columns>CommandField>Edit, Update, Cancel buttons on the GridView, the page seems to shuffle about 10 rows up when you click [Edit]. Then when you hit [Cancel] it drops you like 5 rows down. Same with [Update]. It makes editing each submission a task of just finding your place again and again.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="asdfasdf" Width="1200px" DataKeyNames="pk_id" CellPadding="4"
ForeColor="#333333" GridLines="None">
<RowStyle BackColor="#EFF3FB" />
<Columns>
<asp:CommandField ButtonType="Button" ShowEditButton="True">
<HeaderStyle Width="5%" />
</asp:CommandField>
<asp:BoundField DataField="question" HeaderText="Question"
SortExpression="question" >
<HeaderStyle Width="35%" />
</asp:BoundField>
<asp:BoundField DataField="answer_A" HeaderText="Choice A"
SortExpression="answer_A" >
<HeaderStyle Width="10%" />
</asp:BoundField>
<asp:BoundField DataField="answer_B" HeaderText="Choice B"
SortExpression="answer_B" >
<HeaderStyle Width="10%" />
</asp:BoundField>
<asp:BoundField DataField="answer_C" HeaderText="Choice C"
SortExpression="answer_C" >
<HeaderStyle Width="10%" />
</asp:BoundField>
<asp:BoundField DataField="answer_D" HeaderText="Choice D"
SortExpression="answer_D" >
<HeaderStyle Width="10%" />
</asp:BoundField>
<asp:BoundField DataField="answer_E" HeaderText="Choice E"
SortExpression="answer_E" >
<HeaderStyle Width="10%" />
</asp:BoundField>
<asp:BoundField DataField="correct_answer" HeaderText="Answer"
SortExpression="correct_answer" >
<HeaderStyle Width="5%" />
</asp:BoundField>
<asp:CommandField ButtonType="Button" ShowDeleteButton="True">
<HeaderStyle Width="5%" />
</asp:CommandField>
</Columns>
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<PagerTemplate>
asd
</PagerTemplate>
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#2461BF" />
<AlternatingRowStyle BackColor="White" />