Syncfusion - GridControl - Show Right Click Menu on Selected Range
Selection of range and Right Click. Normally if you Select a Range in Grid and Right Click on that Range the Selected Range is Changed to Cell on which Right Click is Done.
GridControl1.Model.Options.SelectCellsMouseButtonsMask = Windows.Forms.MouseButtons.Left
Menu Strip item Event to Get Range of Selected Range when Right Clicked
Private Sub OneToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles OneToolStripMenuItem.Click
Dim intStartColindex As Integer = ArcGridControl1.Selections.Ranges.ActiveRange.Left
Dim intStartRowindex As Integer = ArcGridControl1.Selections.Ranges.ActiveRange.Top
Dim intEndRowindex As Integer = ArcGridControl1.Selections.Ranges.ActiveRange.Bottom
Dim intEndColIndex As Integer = ArcGridControl1.Selections.Ranges.ActiveRange.Right
// This will return the selected Range if you need this range to be used for updating values of cell.
End Sub
Selection on the Range remain when right clicked on the selected range
Comments
Post a Comment