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. Binding dataset to a textbox

Binding dataset to a textbox

Scheduled Pinned Locked Moved Visual Basic
databasesql-serverwpfwcfsysadmin
3 Posts 3 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.
  • Y Offline
    Y Offline
    y_mmohd
    wrote on last edited by
    #1

    I the code i define all the required parameter to connect to a sql server. Also I define dataset in the code. i need to bind rows in the dataset to a textbox using textbox binding propertise. what code i must write in textbox -> properties -> bindingdata -> advance -> text to connect dataset that i define in the code to the textbox. Thanks....

    A V 2 Replies Last reply
    0
    • Y y_mmohd

      I the code i define all the required parameter to connect to a sql server. Also I define dataset in the code. i need to bind rows in the dataset to a textbox using textbox binding propertise. what code i must write in textbox -> properties -> bindingdata -> advance -> text to connect dataset that i define in the code to the textbox. Thanks....

      A Offline
      A Offline
      abhinish
      wrote on last edited by
      #2

      after filling the dataset with datatable write this: textbox1.text=ctype(dst.tables(0).rows(0).item("ColumnName"),string) thats all abhinav

      1 Reply Last reply
      0
      • Y y_mmohd

        I the code i define all the required parameter to connect to a sql server. Also I define dataset in the code. i need to bind rows in the dataset to a textbox using textbox binding propertise. what code i must write in textbox -> properties -> bindingdata -> advance -> text to connect dataset that i define in the code to the textbox. Thanks....

        V Offline
        V Offline
        vonb
        wrote on last edited by
        #3

        It's as easy: TextBox1.DataBindings.Add("Text", myDataSet.Table1, "myField") vonb

        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