Home - Forums-.NET - FlyGrid.Net (Windows Forms) - question about 1.2.5 version

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

question about 1.2.5 version
Link Posted: 31-Oct-2005 22:05
Hi,
You said in improvements :

>Improved selection mechanism (now it easy to disable certain nodes >selection).

Can you provide an example or tell me which sample illustrate this new mechanism?

Thanks
Link Posted: 01-Nov-2005 05:14
Now it is easy to block some node selection/focusing:
[c#]
//code in flygrid initialization
this.dataGrid.NodeFocusChanging += new NodeBoolHandler(dataGrid_NodeFocusChanging);
//define index of column with locking
private int lockedColumnIndex = 1;

private bool dataGrid_NodeFocusChanging(object sender, NodeBase node)
{
  object objLocked = node.GetValue(lockedColumnIndex);
  //if objLocked == true we return false and disable selection of this node
  return objLocked != null ? !((bool)objLocked) : true;
}