Question : DataTable internal index is corrupted: '5'.

I'm getting the above error in a VB.Net Windows app that I inherited.

The program is trying to execute this:

              Me.RTALISDataSetRockwell.BeneficiaryCollections(I).MDAgrees1 = -1
There is a public property:

    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
        Public Property MDAgrees1() As Boolean
            Get
                Try
                    Return CType(Me(Me.tableBeneficiaryCollections.MDAgrees1Column),Boolean)
                Catch e As Global.System.InvalidCastException
                    Throw New Global.System.Data.StrongTypingException("The value for column 'MDAgrees1' in table 'BeneficiaryCollections' is DBNull.", e)
                End Try
            End Get
            Set
                Me(Me.tableBeneficiaryCollections.MDAgrees1Column) = value
            End Set
        End Property                    


It is failing on this statement:
Me(Me.tableBeneficiaryCollections.MDAgrees1Column) = value

Can you help me get going in the right direction?

It is a vb.net 2005 windows app using a data table and sql server 2005

Answer : DataTable internal index is corrupted: '5'.

Hi,

Since the page directive is not included in the code you have posted i cant see whether you have tried this but there is a property called "MaintainScrollPositionOnPostback" that you can set to true in the page directive which will force the page to maitain the scroll position on postback.

/Carl.
Random Solutions  
 
programming4us programming4us