Bindingsource.find is missing the first item.!
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I have filled a dataset at runtime and then binded to bindingsource1, it is working nicely but when i was searching the list it is continuously ignoring the first item.
dim idx as Integer = BindingSource1.Find("City",CityName)
Then I manually check the idx property and if it is -1 then it checks the first item if it matches or not and it matches.
If idx=-1 then
If BindingSource1.Item(0)("CityName") = CityName then idx=0
End ifAlthough the technique works but why is it so and why can't it find the first row? Regards,
MAP Tiger Tiger Softwares Software Designer and Developer VB.NET, ASP.NET, VFP