1、我想把表中的名称列,变为蓝色字体,
用 DrawCell 事件结合自定义样式 如
If e.Col.name = "名称" Then
e.Style = "样式1"
End If
2、并且鼠标移到名称列某一行的时候,鼠标指针变成小手状态,
用 MouseEnterCell 和 MouseLeaveCell 事件 如
进入
If e.Col.name = "名称" Then
e.Table.grid.Cursor = System.Windows.Forms.Cursors.Hand
End If
离开
If e.Col.name = "名称" Then
e.Table.grid.Cursor = System.Windows.Forms.Cursors.Default
End If
3、通过单击,就可以查询该条的全部信息
用 Click 事件 如
If e.Col.name = "名称" Then
'在此处写 查询数据的代码
End If