Home - Forums-.NET - FlyGrid.Net (Windows Forms) - virtual mode in flygrid

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

virtual mode in flygrid
Link Posted: 10-Dec-2005 19:58
can someone please explaine to me how to use the virtual mode functions?
or give me a link to an example...

i cant really understand to exampke in the flygrid documentation.

thanks,
Guy
Link Posted: 11-Dec-2005 14:41
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.
    Link Posted: 01-Feb-2007 03:59
    [quote="NineRays"]
      
  • VirtualMode_GetCount - this event returns count of rows in the node specified by parameter (if you make regular grid, this parameter can be ignored).


  • Can you give an example on this event?  I have checked your samples and there is nothing clear for a simple databound grid (virtualGridForm):


    private int VM_GetCount(NodeBase sender)
    {
        return (int)rowCountUpDown.Value;
    }


    I can't exactly use this....

    All I want to do is have a simple grid in virtual mode.  No trees, no nesting.  I may bind data, or add row by row.