markdown 列上的DevExpress工具提示

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 列上的DevExpress工具提示相关的知识,希望对你有一定的参考价值。

First add the ToolTipController component onto the form.

Set the ToolTipController property of the GridControl to point to the ToolTipController component.

Create an event handler for the ToolTipController's GetActiveObjectInfo event

    Private Sub toolTipController1_GetActiveObjectInfo(ByVal sender As Object, ByVal e As ToolTipControllerGetActiveObjectInfoEventArgs) Handles toolTipController1.GetActiveObjectInfo
      If e.Info Is Nothing AndAlso e.SelectedControl Is gridControl1 Then
        Dim view As GridView = TryCast(gridControl1.FocusedView, GridView)
        Dim info As GridHitInfo = view.CalcHitInfo(e.ControlMousePosition)
        If info.InRowCell Then
          Dim text As String = view.GetRowCellDisplayText(info.RowHandle, info.Column)
          Dim cellKey As String = info.RowHandle.ToString() & " - " & info.Column.ToString()
          e.Info = New DevExpress.Utils.ToolTipControlInfo(cellKey, text)
        End If
      End If
    End Sub

This example will display the contents of each column when the mouse hoovers over the cell. To set the ToolTip for a specific column, check for the column name. For example

    If info.InRowCell Then
      If info.Column.Name = "colOrderNumber" then
        cellKey = info.RowHandle.ToString() & " - " & info.Column.ToString()
        e.Info = New DevExpress.Utils.ToolTipControlInfo(cellKey, "This is the Order Number column")
      End If
    End If

以上是关于markdown 列上的DevExpress工具提示的主要内容,如果未能解决你的问题,请参考以下文章

如何在 devexpress 中向表单字段添加动态验证规则

在 VS Code 上的 Asp.net Core 应用程序中集成 Devexpress 工具

markdown 在重点行的DevExpress红色边界

markdown DevExpress Tab重新排序

markdown DevExpress设置列标题BackColor

markdown 修改了重点行的DevExpress红色边框