首页 > 解决方案 > 如何在 sfdatagrid 同步融合中使用“cellmousedown”事件

问题描述

您好我正在使用 Syncfusion 我想在我的项目中应用以下代码,但 sfdatagrid 没有“cellmousedown”事件!

    If e.Button = Windows.Forms.MouseButtons.Right Then

        If e.ColumnIndex <> -1 And e.RowIndex <> -1 Then

            Me.DataGridView1.ClearSelection()

            Dim cell = Me.DataGridView1.Item(e.ColumnIndex, e.RowIndex)

            Me.DataGridView1.CurrentCell = cell

            cell.Selected = True 'Needed if you right click twice on the same cell

            DataGridView1.ContextMenuStrip = mnuCell

        End If

    End If

如何应用它。

标签: vb.netsyncfusion

解决方案


推荐阅读