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. Databindings property for textbox control in Design mode - VS 2005 [modified]

Databindings property for textbox control in Design mode - VS 2005 [modified]

Scheduled Pinned Locked Moved Visual Basic
visual-studiodesigntutorial
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.
  • C Offline
    C Offline
    CPK_2011
    wrote on last edited by
    #1

    Simple databinding works fine with the following code.

    Text.DataBindings.Add(Text",datatable1,"Name")

    Could anyone suggest on how to do Databinding in Design mode in VS 2005

    modified on Thursday, September 18, 2008 1:01 AM

    C 1 Reply Last reply
    0
    • C CPK_2011

      Simple databinding works fine with the following code.

      Text.DataBindings.Add(Text",datatable1,"Name")

      Could anyone suggest on how to do Databinding in Design mode in VS 2005

      modified on Thursday, September 18, 2008 1:01 AM

      C Offline
      C Offline
      C1AllenS
      wrote on last edited by
      #2

      Hello, First of all, you need to set the DataSource and DataMember for the BindingSource. Then you can use set the desired bindingSource.ColumnName in the Text property under DataBindings() in the Properties Windows(Located at the top on the window) of the TextBox. In the MoveNext and MovePrevious buttons, you can simply define the following code: BindingSource1.MovePrevious() or BindingSource1.MoveNext() For more information, you can visit the given link: http://www.codeproject.com/KB/grid/BindSourceBindingNavCS.aspx[^] I hope this will help. Regards, Allen

      Allen Smith ComponentOne LLC www.componentone.com

      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