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. How to add multiple rows to Datagrid

How to add multiple rows to Datagrid

Scheduled Pinned Locked Moved Visual Basic
databasetutorial
4 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
    AnuPinky
    wrote on last edited by
    #1

    Hi, I am having a form with a datagrid control. I have few textboxs and comboboxs to receive data from user. On compliting the entry in these textboxs and combo boxes, the user presses a command button which enters the contents to the datagrid. and it clears all the textboxs,comboboxs to added the new contents. And then next record in entered to the datagrid. Finally on pressing a command button only the two records should be added to the database. 1. How to add data to datagrid by each cell. I have done it using datasource. 2. Is it possible to temporary display data and on pressing a button it has to perminently add to database. 3. Can we add more than one record at a time in datagrid. Thank you, Anu.

    N 1 Reply Last reply
    0
    • A AnuPinky

      Hi, I am having a form with a datagrid control. I have few textboxs and comboboxs to receive data from user. On compliting the entry in these textboxs and combo boxes, the user presses a command button which enters the contents to the datagrid. and it clears all the textboxs,comboboxs to added the new contents. And then next record in entered to the datagrid. Finally on pressing a command button only the two records should be added to the database. 1. How to add data to datagrid by each cell. I have done it using datasource. 2. Is it possible to temporary display data and on pressing a button it has to perminently add to database. 3. Can we add more than one record at a time in datagrid. Thank you, Anu.

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

      Dear friend, You can use dataset to store the information. The datagrid is actually set it's datasource to the datagrid. So when the dataset is updated, the datagrid will update too. Regards, Cherhan p/s: Feel free to email me at leoforum2003@hotmail.com if u need further help. :):mad:

      A 1 Reply Last reply
      0
      • N nisevoli

        Dear friend, You can use dataset to store the information. The datagrid is actually set it's datasource to the datagrid. So when the dataset is updated, the datagrid will update too. Regards, Cherhan p/s: Feel free to email me at leoforum2003@hotmail.com if u need further help. :):mad:

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Hi Cherhan, Let me thank you for every thing. Actually I am using VB.6, can I use dataset in it. Sorry if I have asked a basic question. I am very new to VB. I am learning on my own. It will be helpful if u could write little bit in detail. I mean algoritham. Thank you very much Anu

        N 1 Reply Last reply
        0
        • A Anonymous

          Hi Cherhan, Let me thank you for every thing. Actually I am using VB.6, can I use dataset in it. Sorry if I have asked a basic question. I am very new to VB. I am learning on my own. It will be helpful if u could write little bit in detail. I mean algoritham. Thank you very much Anu

          N Offline
          N Offline
          nisevoli
          wrote on last edited by
          #4

          Hi Anu, I don't think your request can be achieved as VB 6 does not support this dataset concept. The offline concept is only available in VB .NET or above. Which means this is a new thing in .NET FrameWork. Regards, Cherhan:):rose:

          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