I am having some issues trying to edit rows in a GridView that is bound to a MS SQL Server dataset. I created a new test project to make sure it wasn't something else in my code somewhere that is causing the issue. The test project only has a form with 1 control on it (rad gridview) I created a dataset in VS Studio 2012 and bound the gridview to it. Whenever I attempt to update a field in the gridview I am getting the error message: DataTable internal index is corrupted: '5'. I did some research and this error can happen when you are accessing a datatable from multiple threads - which I am not. I have another application where I use the same code with a local MS Access database and the code works perfectly. Here is the code in my test application:
Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'IT_InventoryDataSet.InventoryRun' table. You can move, or remove it, as needed. Me.InventoryRunTableAdapter.Fill(Me.IT_InventoryDataSet.InventoryRun) End Sub Private Sub InventoryRunBindingSource_CurrentChanged(sender As Object, e As EventArgs) Handles InventoryRunBindingSource.CurrentChanged End Sub Private Sub InventoryRunBindingSource_ListChanged(sender As Object, e As System.ComponentModel.ListChangedEventArgs) Handles InventoryRunBindingSource.ListChanged If e.ListChangedType = System.ComponentModel.ListChangedType.ItemChanged Then Me.InventoryRunTableAdapter.Update(Me.IT_InventoryDataSet.InventoryRun) End If End SubEnd Class