其他分享
首页 > 其他分享> > DataGridView EditingControl 取得当前单元格选取的内容

DataGridView EditingControl 取得当前单元格选取的内容

作者:互联网

    Private Sub lblC01_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblC01.Click
        Dim myTxt As TextBox
        myTxt = CType(dgvA.EditingControl, TextBox)
        txtC01.Text = myTxt.SelectedText
    End Sub

 

 

标签:Sub,lblC01,myTxt,ByVal,单元格,System,DataGridView,EditingControl,TextBox
来源: https://www.cnblogs.com/nk43420/p/15899489.html