Home - Forums-.NET - FlyGrid.Net (Windows Forms) - MultiSelect and RightClick FlyGrid 1.2.8

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

MultiSelect and RightClick FlyGrid 1.2.8
Link Posted: 02-Dec-2005 06:22
Hi

When Multiselect option is set to false and I press Ctrl key and click right mouse button on another node multiselect is possible.

After this, when I click on another node, previous selected ( crtl + right click ) nodes are in selection state and are on selectedNodes list.

I think, this is a bug.

Best regars
Robert
Link Posted: 07-Dec-2005 04:12
There is a bug or not ???

Robert
Link Posted: 07-Dec-2005 22:53
This is not a bug, Right clicked node is temporarily marked as RightSelected (node.RightSelected == true) until mouse button is pressed.
This helps user to easily determine node to popup Context menu, for example.
Link Posted: 08-Dec-2005 00:57
If this only temporary, why this node is on SelectedNodes list ?

Robert
Link Posted: 08-Dec-2005 03:08
Node will removed from Selection list when user releases right mouse button.
Link Posted: 08-Dec-2005 08:36
Sorry

It's not true.

table.Rows.GetSelection().Length get more than 1 ( exactly right + left selected nodes )

In addition, when I select 5 nodes in right click ( all of this are marked as selected !!! ) and I select next left click and next I select another one left click, event  NodeSelectedChange fire 6 times ( only after last left click )

Can You check this.

Best regads
Robert
Link Posted: 08-Dec-2005 14:38
Well, If you don't want to occur right selection, please turn off GridOptions.RightSelection option from FlyGrid.Options.
RightSelection option is inlucded into default options.
After excluding RightSelection, right clicked nodes will not marked as RightSelected and SelectionChanged will not called on right click.
This option will available in the today FlyGrid update.