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. add and remove rows in datagrid.

add and remove rows in datagrid.

Scheduled Pinned Locked Moved Visual Basic
help
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.
  • R Offline
    R Offline
    ra rag
    wrote on last edited by
    #1

    i have a small req, that is in window application, i have a datagrid with a check box in it, initially datagrid is empty/one blankrow . and two buttons AddButton, RemoveButton. if i press a addButton the everytime one row has to add to the datagrid,i have to able to enter the data in datagrid, If i select a check box of a row and press the removeButtonn that perticuler row has to remove from the datagrid. Can anyone help me for the addButton and remButton click events with code Thanks in advance. ushar raghu

    T 1 Reply Last reply
    0
    • R ra rag

      i have a small req, that is in window application, i have a datagrid with a check box in it, initially datagrid is empty/one blankrow . and two buttons AddButton, RemoveButton. if i press a addButton the everytime one row has to add to the datagrid,i have to able to enter the data in datagrid, If i select a check box of a row and press the removeButtonn that perticuler row has to remove from the datagrid. Can anyone help me for the addButton and remButton click events with code Thanks in advance. ushar raghu

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

      DataGrid has to be bound to a DataSource before you can add and remove a row. Adding and removing of row has to be done in a recordset. Well I used VB6.0 and I used datagrid if I want to display the entire contents of a table. I the it does not require to be linked to a Datasource I use MSFlexGrid instead. I haven't explored it from VB.Net yet. Hope this helps

      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