Specified arguments was out of the range of valid values. Parameter name: index
问题 This was the original line in code-behind (CType(row.Cells(0).Controls(0), TextBox)) and it didn't work. After that, I changed it to row.Cells(1) and received the above error when attempting to update a field in GridView. Here're the aspx markups: <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="TicketID" DataSourceID="historySqlDataSource" ForeColor="#333333" GridLines="None" Width="828px"