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 insert the data in data grid ?

how to insert the data in data grid ?

Scheduled Pinned Locked Moved Visual Basic
csharpcsstutorialquestion
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.
  • V Offline
    V Offline
    vidyashankar
    wrote on last edited by
    #1

    how to insert data in data grid in vb.net

    J 1 Reply Last reply
    0
    • V vidyashankar

      how to insert data in data grid in vb.net

      J Offline
      J Offline
      Jaydeanster
      wrote on last edited by
      #2

      Try this... dim conn = new sqlconnection(connstring) dim cmd = new sqlcommand cmd.connection = conn cmd.commandtype = command.text cmd.commandtext = "SELECT ...." dim da = new sqldataadapter da.selectcommand = cmd dim ds = new dataset da.fill(ds, "tblname") dg.datasource = ds.tables(0) Feng Screwed, the art of moving to a new place because it would just be too much to clean the old place

      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