Home Forums WinForms controls Xceed Grid for WinForms How to select cell or row on right click? Reply To: How to select cell or row on right click?

User (Old forums)
Member
Post count: 23064

Hmm, still no closer. As a test, I tried the following in the cell_mousedown event:

Dim element As Xceed.Grid.VisualGridElement
Dim row As Xceed.Grid.DataRow
element = gridInventory.GetVisualGridElementAtPoint(e.X, e.Y)

No matter which cell I click in, element is always an Xceed.Grid.GroupByRow and I can’t see a way to get from the groupbyrow to the datarow to select it.

This MUST be possible, I bet I’m doing something wrong. Anyone else got any ideas?

Imported from legacy forums. Posted by rjmorton (had 518 views)