Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Ensuere visibilty

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

Ensuere visibilty
Link Posted: 16-Mar-2006 03:58
Hi,
first of all i want to say that this is a great feutere!

but i have a problem with it.

when i have a tree, it does expand the tree, but does not mark the node.

please help,
Thanks,
Guy.
Link Posted: 16-Mar-2006 05:20
Can you provide more info - are you using EnsureVisible  in the nested grids, real mode or virtual mode? Can you demonstrate a code?
Link Posted: 18-Mar-2006 19:53
Hi,
Im using  a virtual mode, in a table and a tree.

when i do a selection on a node, i  rum the ensuere visiblity on that node.

like i said, in a table it workds fine.
in a tree it expands the nodes, but doesz not shoe the node as selected.


thanks,
Guy.
Link Posted: 19-Mar-2006 06:56
EnsureVisible doesn't' selects/focus node, it only make it visible in the viewport/FlyGrid. To select this node use:
[C#]
private void EnsureVisibleandSelectNode(FlyGrid flyGrid, NodeBase nodetoEnsureVisible)
{
  flyGrid.ActivePort.EnsureVisible(nodetoEnsureVisible);
  flyGrid.Selected = nodetoEnsureVisible;
}