To work with FlyGrid in the virtual mode do following:
[list]
Add columns to FlyGrid[/*:m]
Connect to following event handlers:[list]
VirtualMode_GetCount - this event returns count of rows in the node specified by parameter (if you make regular grid, this parameter can be ignored).
[/*:m]VirtualMode_GetNodeCellValue - this event will returns value in the node specified by node parameter of cell specified by index parameter.
[/*:m]If your grid is editable, VirtualMode_SetNodeCellValue
- this event will handles changes in the node specified by node parameter, in the cell of the node specified by index parameter.
[/*:m]If you plan to use non-standard nodes (with extended functionality for example), VirtualMode_InitNewNode - this event will returns new node as child for the node specified by the node parameter, at index, specified by the index parameter (if you make regular grid, these parameters can be ignored).
[/*:m][/list:u][/*:m]
set flyGrid.Rows.VirtualMode = true.[/*:m]
to refresh nodes in FlyGrid in Virtual mode, use following code:
[C#]
flyGrid.Rows.Reset();
flyGrid.Rows.RootNode = null;
flyGrid.Invalidate();
[/*:m][/list:u]
Also
- see the Virtual Grid sample of FlyGrid demo.
- see the Virtual Nested Grids sample of FlyGrid demo.