Hi
I have a problem with BindingManagerBase, and the strange thing is that it doesn't hapen all the time, so maybe someone knows what could trigger such a thing.
I'm iterating through the items of a BindingManagerBase object and searching for a specific item
I have a problem with BindingManagerBase, and the strange thing is that it doesn't hapen all the time, so maybe someone knows what could trigger such a thing.
I'm iterating through the items of a BindingManagerBase object and searching for a specific item
Code:
bmb.Position = 0
while bmb.Position <> bmb.Count
if bmb.Current.Row("Field1") = value
return bmb.Current.Row
End If
bmb.Position += 1
End While
[code]
The problem that happens, is that after a few iterations, the line : "bmb.Position += 1" doesn't increment the Position property, although it hasn't reached to "Count" yet, and it gets stuck in an infinite loop. I ran it with a debugger and "position" simply doesn't case I incremented it and it keeps its old value. If anyone knows what could cause such a thing I will be greatfull.