|
-
Nov 21st, 2008, 04:31 PM
#1
Thread Starter
Fanatic Member
[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
-
Nov 21st, 2008, 05:17 PM
#2
Addicted Member
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
-
Nov 21st, 2008, 05:24 PM
#3
Thread Starter
Fanatic Member
Re: [2008] Extracting data from a DataGridView
brilliant thank you very much maslowb
-
Nov 21st, 2008, 05:28 PM
#4
Addicted Member
Re: [2008] Extracting data from a DataGridView
 Originally Posted by frosty16
brilliant thank you very much maslowb
Rate my post if it helped, thanks.
-
Nov 21st, 2008, 05:32 PM
#5
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|