PLS,如何在msgbox中使用VB.NET在DataGridView中显示第一个单元格 [英] PLS, how to display first cell in DataGridView using VB.NET in msgbox
本文介绍了PLS,如何在msgbox中使用VB.NET在DataGridView中显示第一个单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
PLS,如何在msgbox中使用VB.NET在DataGridView中显示第一个单元
解决方案
尝试
私有 Sub DataGridView1_CellClick( ByVal 发件人作为系统。对象,_
ByVal e As DataGridViewCellEventArgs)_
句柄 DataGridView1.CellClick
MsgBox( DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value)
结束 Sub 跨度>
PLS, how to display first cell in DataGridView using VB.NET in msgbox
解决方案
Try
Private Sub DataGridView1_CellClick(ByVal sender As System.Object, _ ByVal e As DataGridViewCellEventArgs) _ Handles DataGridView1.CellClick MsgBox(DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value) End Sub
这篇关于PLS,如何在msgbox中使用VB.NET在DataGridView中显示第一个单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文