Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Bindingsource.find is missing the first item.!

Bindingsource.find is missing the first item.!

Scheduled Pinned Locked Moved Visual Basic
csharpasp-netalgorithmsquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MAP Tiger
    wrote on last edited by
    #1

    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 if

    Although 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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups