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. C#
  4. Simple databinding

Simple databinding

Scheduled Pinned Locked Moved C#
questioncsharptutorialannouncement
3 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
    Kaikus
    wrote on last edited by
    #1

    I'm quite lost. I think it's simple, but I can't find the article or forum answer... I have a dataset. I have bound diffrent columns to different textboxes. Now... ¿How do I move throught the dataset? I just need to navigate through the dataset and then bound controls should automatically update. How to: - Move next/previous record - Seek or find records. Thanks! NOTE: By the moment I'm using Visual C# 2003 with NET Framework 1.1...

    T 1 Reply Last reply
    0
    • K Kaikus

      I'm quite lost. I think it's simple, but I can't find the article or forum answer... I have a dataset. I have bound diffrent columns to different textboxes. Now... ¿How do I move throught the dataset? I just need to navigate through the dataset and then bound controls should automatically update. How to: - Move next/previous record - Seek or find records. Thanks! NOTE: By the moment I'm using Visual C# 2003 with NET Framework 1.1...

      T Offline
      T Offline
      tonyonlinux
      wrote on last edited by
      #2

      not sure if it works in that version of c# that you are using or not I'm using c# visual studios 2008 express edition. But anyway what I use is the bindingnavigator toolstrip it does just that adds a forward back and list the number of items like 1 of whatever.   lets you skip to the front to the end and then add remove save...   and then you simply take and have your controls bound to the data in the datasource. and it will automatically update. How i went about doing it in my project was I took and added a database using the whole data>add data source thing in the compiler.   Once that was done I took and went under the data source thing that it creates on the left side of the compiler. I simply dragged the table onto my form and it makes a dataview along with the cool little toolstrip navigator.   i simply remove the dataview and keep the toolstrip.   then i go back to the datasource thing and select the individual items i wish to add to the form and simply drag them over. You can hit the little drop down to change it from a text box to a combo box to whatever.   Then the control is bound to that datasource. so now when you use the navigator it will move forward or back. and the controls will automatically update.   I think this is what you were looking for. If not i'm sorry for misunderstanding..

      K 1 Reply Last reply
      0
      • T tonyonlinux

        not sure if it works in that version of c# that you are using or not I'm using c# visual studios 2008 express edition. But anyway what I use is the bindingnavigator toolstrip it does just that adds a forward back and list the number of items like 1 of whatever.   lets you skip to the front to the end and then add remove save...   and then you simply take and have your controls bound to the data in the datasource. and it will automatically update. How i went about doing it in my project was I took and added a database using the whole data>add data source thing in the compiler.   Once that was done I took and went under the data source thing that it creates on the left side of the compiler. I simply dragged the table onto my form and it makes a dataview along with the cool little toolstrip navigator.   i simply remove the dataview and keep the toolstrip.   then i go back to the datasource thing and select the individual items i wish to add to the form and simply drag them over. You can hit the little drop down to change it from a text box to a combo box to whatever.   Then the control is bound to that datasource. so now when you use the navigator it will move forward or back. and the controls will automatically update.   I think this is what you were looking for. If not i'm sorry for misunderstanding..

        K Offline
        K Offline
        Kaikus
        wrote on last edited by
        #3

        This is exactly what I need, but... I don't have this control :( As I have recently read somewhere, I think I must try working with CurrencyManager, and implement it by myself. Let's see what can I find out... specially for SEEKING records. Thanks, anyway! :)

        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