View Single Post
Old 27-Feb-2007, 08:56 PM   #2 (permalink)
Sangeetha
Fixed Error!
 
Sangeetha's Avatar

Posts: 139
Location: Chennai
Join Date: Feb 2007
Rep Power: 2 Sangeetha is on a distinguished road

IM:
Default Re: Get Cell Value from a DataGridView VS2005 (C#)

Something like:

Private Sub DataGridView_CellContentDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView.CellContentDoubleClick
Dim CellValue As String = DataGridView.Rows(e.RowIndex).Cells("YouCollumnNam e").Value
End Sub

OR .....

Private Sub DataGridView_CellContentDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView.CellContentDoubleClick
Dim CellValue As String = DataGridView.Rows(e.RowIndex).Cells(0).Value
End Sub
Sangeetha is offline   Reply With Quote