PLS,如何在msgbox中使用VB.NET在DataGridView中显示第一个单元格 [英] PLS, how to display first cell in DataGridView using VB.NET in msgbox

查看:84
本文介绍了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屋!

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