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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. DataGridView how to get items

DataGridView how to get items

Scheduled Pinned Locked Moved Visual Basic
databasecsshelptutorialquestion
2 Posts 2 Posters 1 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
    alwinSCH
    wrote on last edited by
    #1

    Hi, i have a question about DataGridView in VS2005! So i bound my DatagridView with Data through a Stored Procedure in SQL the last column of my grid is a checkbox! The user scrolls through the gridview and checks everything he needs... at the end of my form i have a button, when i click this button i need the checked rows from the datagridview in my further program! So i do not need to update my Database or tableAdapter, i only need the rows, which are checked! Can anybody help me, don't know where to start and don't do much of programming... Thanks A.

    H 1 Reply Last reply
    0
    • A alwinSCH

      Hi, i have a question about DataGridView in VS2005! So i bound my DatagridView with Data through a Stored Procedure in SQL the last column of my grid is a checkbox! The user scrolls through the gridview and checks everything he needs... at the end of my form i have a button, when i click this button i need the checked rows from the datagridview in my further program! So i do not need to update my Database or tableAdapter, i only need the rows, which are checked! Can anybody help me, don't know where to start and don't do much of programming... Thanks A.

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      One possibile solution is to use the Rows property of the DataGridview. Iterate over the collection and test if the column you are interested in is checked and if so, extract what data you need from that row, into a collection or whatever. Look up the Rows property in MSDN.

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      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