Datatable internal index is corrupted: 13

knockyo

Well-known member
Joined
Sep 20, 2006
Messages
78
Programming Experience
1-3
actually im using Infragisctics tool to display my data, below is my code

VB.NET:
  If frmMDI.UltraTabbedMdiManager1.TabGroups.Count > 0 Then
                For i As Integer = 0 To frmMDI.UltraTabbedMdiManager1.TabGroups(0).Tabs.Count - 1
                    If frmMDI.UltraTabbedMdiManager1.TabGroups(0).Tabs(i).Form.GetType.Equals(frmLifter.GetType) Then
                        If frmMDI.UltraTabbedMdiManager1.TabGroups(0).Tabs(i).Form.Text = LifterId Then
                            Dim F As frmLifter = CType(frmMDI.UltraTabbedMdiManager1.TabGroups(0).Tabs(i).Form, frmLifter)

                            If Not F.grdAlarm.DataSource Is Nothing Then

                                Dim DTAlarm As DataTable = CType(F.grdAlarm.DataSource, DataTable)

                                DTAlarm.Rows.Add(New Object() {CDate(DT), StatusId, StatusMsg, BackColor.ToArgb})

                                F.grdAlarm.DataSource = DTAlarm
                                'If DTAlarm.Rows.Count <> 0 Then
                                F.grdAlarm.ActiveRow = F.grdAlarm.Rows(F.grdAlarm.Rows.Count - 1)

                                F.lblAlarm.Text = StatusMsg
                                F.lblAlarm.BackColor = BackColor
                                F.LatestStatusIsBlinking = IsBlinking
                                F.LatestStatusColor = BackColor
                                F.LatestStatusDT = DT
                                frmMDI.tsslStatus.Text = DT & " " & LifterId & ":" & StatusMsg
                                'End If
                            End If

                        End If

                    End If
                Next
            End If

when it timer count, and loop into this particular coding
VB.NET:
Dim DTAlarm As DataTable = CType(F.grdAlarm.DataSource, DataTable)
it cause me the error msg:
Datatable internal index is corrupted: 13
&
Index was outside the bounds of the array

Please help,
 
Back
Top