Hello friends,
I am facing an issue while i am try to use infragistics grid control.I am getting the following error as follows:-
- Error 381: Invalid Property Array Index
Can anyone help me out with this issue.
Hello friends,
I am facing an issue while i am try to use infragistics grid control.I am getting the following error as follows:-
- Error 381: Invalid Property Array Index
Can anyone help me out with this issue.
Sure i will help you out with this issue before that may i know in which language you have written you you and i would appreciate if you can provide me the code also.
I am using Visual Basic as my Programming language and following is the code of mine.
Code:Public Function Change_Detected() As Boolean Dim intRow As Integer Dim intCol As Integer For intRow = 0 To ssDbGrdSelectBOPartQty.Rows - 1 intCol = 4 ssDbGrdSelectBOPartQty.Row = intRow ---> I GET THE ERROR WHEN INTROW = 14 and ssDbGrdSelectBOPartQty.Row = 13. till row 13 the code works fine. If Val(Trim(ssDbGrdSelectBOPartQty.Columns(intCol).Text)) <> Val(Trim(mstrmyarray(intRow))) Then Change_Detected = True mintRowDataChanged = intRow mintColDataChanged = intCol Exit Function Else Change_Detected = False End If Next End Function
Try to follow the code i am sure it will work for you.
Code:Public Function Change_Detected() As Boolean Dim intRow As Integer Dim intCol As Integer mintRowDataChanged = SSDBPartXREF.Row mintColDataChanged = SSDBPartXREF.Col For intRow = 0 To SSDBPartXREF.Rows - 1 'intCol = 2 For intCol = 2 To 3 SSDBPartXREF.Row = intRow If Trim(SSDBPartXREF.Columns(intCol).Text) <> Trim(mstrmyarray(intRow, intCol)) Then Change_Detected = True mintRowDataChanged = intRow mintColDataChanged = intCol Exit Function Else Change_Detected = False End If Next Next End Function
Bookmarks