双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

请问:如何获取当前行的所有列?我这么写怎么不对?

happyjsj happyjsj 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
Private Sub DataGrid1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim i As Integer
MsgBox DataGrid1.RowContaining(Y)

For i = 0 To (DataGrid1.Columns.Count - 1)
Form2.Label1(i).Caption = DataGrid1.Columns.Item(i)
Form2.Label1(i).ForeColor = &HC00000
Form2.Label1(i).BackStyle = 0
Next i
Form2.Show
Form2.SetFocus
End Sub
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
MsgBox DataGrid1.RowContaining(Y) 返回的行数,怎么使用DataGrid1.RowContaining(Y)行的所有列的信息

...全文

相关推荐

评论 3
收藏 已收藏
分享
返回顶部
happyjsj
VB基础类 7,788 成员 197,583 内容