Friday, July 4, 2008

datagrid view double click event in windows application

Private Sub grdNextActioner_CellDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles grdNextActioner.CellDoubleClick
Dim id As Integer = 0
If (e.RowIndex > -1 And e.RowIndex <>
id = Convert.ToInt32(grdNextActioner.Rows(e.RowIndex).Cells("ID").Value.ToString())
End If
End Sub

No comments: