Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
VB
Private Sub DGVCustDetails_CellDoubleClick(sender As Object, e As
DataGridViewCellEventArgs) Handles DGVCustDetails.CellDoubleClick
With FrmSale
 .txtCustID.Text = DGVCustDetails.CurrentRow.Cells(0).Value.ToString()
 .txtCustFirstName.Text = DGVCustDetails.CurrentRow.Cells(1).Value.ToString
 .txtCustSurname.Text = DGVCustDetails.CurrentRow.Cells(2).Value.ToString
 .txtCustContactNo.Text = DGVCustDetails.CurrentRow.Cells(3).Value.ToString
End With
Me.Close()
End Sub


What I have tried:

I tried double clinking on the datagridview but in the coding its says datagridview_cellcontentclick instead of datagridview_celldoubleclick so i dnt knw what to do
Posted
Updated 28-Apr-18 20:01pm
v3

1 solution

If I understand your question correctly, you want to define an event handler in the designer.

In order to do that, select the datagridview, open properties and in the properties, click the yellow lightning button on top of the property list. That changes the view from properties to event.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900