vb.net - 如何在 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
如何应用它。
解决方案
推荐阅读
- javascript - 将google分析跟踪代码限制为一个js
- oauth - 应该如何为使用 OAuth 的 API 生态系统定义范围?
- javascript - 为什么在 foreach 函数中未定义变量?
- javascript - 添加自定义工具栏按钮后react-quill缺少样式
- parallel-processing - Kubernetes 根据任务的 Pod 数量
- javascript - 删除多余的 CSS 动画
- android - 在 Java 的 Android Studio 中使用“CardView”在“RecyclerView”中显示 Json 响应
- excel - 抓取本地 HTML 文件
- javascript - 点击侧边栏元素上的 Google 集群地图打开特定信息窗口
- php - PHP 中的 SOAP Web 服务 API