If Me.DataGridView1.Columns(e.ColumnIndex).Name.Equals("Column1") Then
Dim dgvButtonCell As DataGridViewTextBoxCell = Me.DataGridView1.Rows(e.RowIndex).Cells("Column2")
Dim dgvCheckBoxCell As DataGridViewCheckBoxCell = Me.DataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex)
dgvButtonCell.ToolTipText = dgvCheckBoxCell.Value.ToString
End If
DataGridView Cell类型
最新推荐文章于 2024-04-26 15:35:17 发布
本文介绍了一种在DataGridView中根据Column1的选中状态更新Column2提示信息的方法。通过使用 DataGridViewTextBoxCell 和 DataGridViewCheckBoxCell,可以实现在选中复选框时更新按钮单元格的提示文本。

592

被折叠的 条评论
为什么被折叠?



