[dba-VB] Exception: DataTable internal index is corrupted: '5'. on ...

Gustav Brock Gustav at cactus.dk
Mon May 12 14:50:05 CDT 2008


Hi all

Anyone encountered this nasty bug?
It seems to have lived for years(!):

http://forums.microsoft.com/msdn/showpost.aspx?postid=277680&siteid=1&sb=0&d=1&at=7&ft=11&tf=0&pageid=10

I have a Winform with a DataGridView and some bound textboxes. Data source is a DataTable.
Update goes like this:

                this.Validate(true);
                this.mediaBindingSource.EndEdit();
                this.mediaTableAdapter.Update(this.MyAdapter.Media);

Sometimes after multiple but not stressed updates, the exception error is raised.

Any ideas or workarounds?

/gustav





More information about the dba-VB mailing list