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. IT's Urgent Plz.......how to fetch checked values(check box) from grid view (In vb.net) [modified]

IT's Urgent Plz.......how to fetch checked values(check box) from grid view (In vb.net) [modified]

Scheduled Pinned Locked Moved Visual Basic
csharpcsstutorial
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
    Ashish Kumar Vyas
    wrote on last edited by
    #1

    I have gridview in mine code,it has check box control. I want to fetch those rows only which has been selected by checking the check box column. Please suggest me what I need to do. Ashish K. vyas -- modified at 3:44 Thursday 29th November, 2007 Ashish K. vyas

    M L 2 Replies Last reply
    0
    • A Ashish Kumar Vyas

      I have gridview in mine code,it has check box control. I want to fetch those rows only which has been selected by checking the check box column. Please suggest me what I need to do. Ashish K. vyas -- modified at 3:44 Thursday 29th November, 2007 Ashish K. vyas

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      I use this to get the IDs (in the first column) you should be able to modify it to get the checked value from the checkbox cell Private Sub DoReturns() Try Dim oRow As DataGridViewRow mvReturnValue = "" mvReturnValues = "" If dgData.SelectedRows.Count > 0 Then mvReturnValue = dgData.SelectedRows(0).Cells(0).Value.ToString For Each oRow In dgData.SelectedRows mvReturnValues += oRow.Cells(0).Value.ToString + "," Next End If Catch Exc As Exception Throw Exc End Try End Sub

      Quote from Great Outdoors: its a confident traveller who farts in India

      1 Reply Last reply
      0
      • A Ashish Kumar Vyas

        I have gridview in mine code,it has check box control. I want to fetch those rows only which has been selected by checking the check box column. Please suggest me what I need to do. Ashish K. vyas -- modified at 3:44 Thursday 29th November, 2007 Ashish K. vyas

        L Offline
        L Offline
        leckey 0
        wrote on last edited by
        #3

        Please read the forum guidelines. Avoid text speak. We don't care if it's urgent.

        Current Rant: "All Your Code Belong to Me" http://craptasticnation.blogspot.com/[^]

        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