Home - Forums-.NET - FlyGrid.Net (Windows Forms) - TreeViewColumn Nodes: Left Button vs. Right Button Selection

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

TreeViewColumn Nodes: Left Button vs. Right Button Selection
Link Posted: 09-Aug-2006 07:36
I want the TreeViewNodes in a TreeViewColumn to be selectable with a Right click but not with a Left Click... i.e., a Left click on a node should have no visible effect. What is the best way to realize this goal with FlyGrid?

(I intend to process the Right click with the NodeSelectedChanging event and the node.RightSelected property.)

Thanks.
Link Posted: 09-Aug-2006 08:09
There are two ways:
1. Use your own Node implementation where are you can ignore setting Selected property to true.
2. Use FlyGrid.NodeSelectedChanged to unselect node. But this way not optimal.
Link Posted: 14-Aug-2006 23:13
I am experiencing problem with right click node selection too.

My grid is running in single-selection mode (MultiSelect == false) and I want right click to change the row selection in the same way as left click does. I have set the RightSelection flag to true and follow the way recommended here:
http://www.9rays.net/forums/viewtopic.php?t=527

But I am still experience problems like described in the topic:
After right click the selection moves to the clicked node. Now click on the grid outside the rows (empty field), the selection disappears, no rows are selected now. This this differently to the left click selection behaviour. If the record was selected by the left click (and not by setting flyGrid.Selected property) the selection remains event if user clicks on the grid outside the data rows.

How to solve this issue?