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. Textbox VS DATASET

Textbox VS DATASET

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

    Hello How can i put the data of my dataset into my multiline textboxe please help Thanks in advance

    Assaf

    S K 2 Replies Last reply
    0
    • A Assaf82

      Hello How can i put the data of my dataset into my multiline textboxe please help Thanks in advance

      Assaf

      S Offline
      S Offline
      Scott Dorman
      wrote on last edited by
      #2

      Loop through each row of the dataset, add it to a StringBuilder and then set the Text property on the textbox to the ToString() output of the StringBuilder. Why wouldn't you just display the dataset in a datagrid?

      Scott Dorman

      Microsoft® MVP - Visual C# | MCPD President - Tampa Bay IASA [Blog][Articles][Forum Guidelines]


      Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

      1 Reply Last reply
      0
      • A Assaf82

        Hello How can i put the data of my dataset into my multiline textboxe please help Thanks in advance

        Assaf

        K Offline
        K Offline
        Karrar Ketawi
        wrote on last edited by
        #3

        Hi there are Tow ways to do that but in both ways u should bind each TextBox alone The First way

        TextBox1.DataBindings.Add("Text", DataSetName, "TableName1.ColumnName1")
        NumericUpDown1.DataBindings.Add("Value", DataSetName, "TableName1.ColumnName2")

        And The 2nd way

        Dim NewBind As New Binding("Text", DataSetName, "TableName1.ColumnName3")
        TextBox1.DataBindings.Add(NewBind)

        where: "Text" and "Value" is the Property that u want to bind your data to as u see you should pass it as text DataSetName is your DataSet "TableName.ColumnName" is Your DataMember Excuse my English :-O

        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