我需要帮助这个代码我知道在哪里点击以编码它 [英] I need help with this code I dnt knw where to click in order to code it

查看:48
本文介绍了我需要帮助这个代码我知道在哪里点击以编码它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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





我尝试了什么:



我在datagridview上试过双重克隆,但在编码中它说 datagridview_cellcontentclick 而不是 datagridview_celldoubleclick 所以我知道该怎么做



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

推荐答案

如果我理解你的问题正确,你想在设计器中定义一个事件处理程序。



为了做到这一点,选择datagridview,打开属性,然后在属性中单击黄色属性列表顶部的闪电按钮。这会将视图从属性更改为事件。
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.


这篇关于我需要帮助这个代码我知道在哪里点击以编码它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆