Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Double-Click opening Tree node. Can this be stopped?

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

Double-Click opening Tree node. Can this be stopped?
Link Posted: 09-Feb-2006 07:14
Is there any way to prevent the tree from expanding on double-click?  I want my users to expand the tree by clicking on the + box ONLY.

Kindest regards,
LK
Link Posted: 13-Feb-2006 06:50
You can override public virtual void DoubleClickRow(int row, bool toggleExpand, int col) of FlyGrid method to avoid node expanding:
[c#]
public class ExtFlyGrid : FlyGrid
{
  // ....
  public override void DoubleClickRow(int row, bool toggleExpand, int col)
  {
    if (!toggleExpand)
      base.DoubleClickRow(row, toggleExpand, col);
  }
}
Link Posted: 15-Feb-2006 08:16
Thanks