Results 1 to 5 of 5

Thread: [RESOLVED] [2008] Extracting data from a DataGridView

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2007
    Posts
    520

    Resolved [RESOLVED] [2008] Extracting data from a DataGridView

    Heya guys

    I have got a DataGridView that is populated with data.

    What i want is when any entry in a row is clicked on the value of a specific cell in that row is selected.

    How do i do this?

    Thank you in advance

    Frosty

  2. #2
    Addicted Member
    Join Date
    Sep 2008
    Location
    Jacksonville, Florida
    Posts
    147

    Re: [2008] Extracting data from a DataGridView

    Tap into the celldoubleclick event on your datagridview with the following:

    Code:
        Private Sub x_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles x.CellDoubleClick
            MsgBox(x.Rows(e.RowIndex).Cells(e.ColumnIndex).Value.ToString)
        End Sub

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2007
    Posts
    520

    Re: [2008] Extracting data from a DataGridView

    brilliant thank you very much maslowb

  4. #4
    Addicted Member
    Join Date
    Sep 2008
    Location
    Jacksonville, Florida
    Posts
    147

    Re: [2008] Extracting data from a DataGridView

    Quote Originally Posted by frosty16
    brilliant thank you very much maslowb
    Rate my post if it helped, thanks.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2007
    Posts
    520

    Re: [RESOLVED] [2008] Extracting data from a DataGridView

    Already have thank you again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width