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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Random Navigation of a BindingContext ???

Random Navigation of a BindingContext ???

Scheduled Pinned Locked Moved .NET (Core and Framework)
questiontutoriallounge
2 Posts 2 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.
  • K Offline
    K Offline
    Kurt B Ederhoff
    wrote on last edited by
    #1

    I have a form with controls bound to a DataView (could also be a DataTable). Every navigation example I see shows the typical "previous", "next", "first", and "last" navigation using buttons. I'm interested in being able to navigate (directly) to a given position in the BindingContext. For example, if I know the primary key value of an entry in the data table, how do I directly navigate to that position within the BindingContext? Is there some way to use the Find method for the data table and then back into the corresponding position in the BindingContext? Right now I am starting at the beginning of the BindingContext and iterating through each entry until I find the entry I'm looking for. This is an order O(n) operation and I'm hoping to find something much faster. Kurt

    N 1 Reply Last reply
    0
    • K Kurt B Ederhoff

      I have a form with controls bound to a DataView (could also be a DataTable). Every navigation example I see shows the typical "previous", "next", "first", and "last" navigation using buttons. I'm interested in being able to navigate (directly) to a given position in the BindingContext. For example, if I know the primary key value of an entry in the data table, how do I directly navigate to that position within the BindingContext? Is there some way to use the Find method for the data table and then back into the corresponding position in the BindingContext? Right now I am starting at the beginning of the BindingContext and iterating through each entry until I find the entry I'm looking for. This is an order O(n) operation and I'm hoping to find something much faster. Kurt

      N Offline
      N Offline
      normanordas
      wrote on last edited by
      #2

      i have the same prob :(

      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