------------------------------------------------------------------------
 Universal Grouper Sample for iGrid ActiveX
 
 Control Version: 3.0
 Environment: Visual Basic 6

 Copyright (c) 10Tec Company. All rights reserved.
------------------------------------------------------------------------

Description
===========
iGrid allows you to create group rows manually in code, but in many applications you need an ability to group the grid automatically by several arbitrary columns. This sample provides you with a sub you can use for that. Now all you need to do to group the grid by several columns is to call that sub and pass the keys of those columns as the parameters.

Short Code Explanation
======================
To group a grid in your code, call the GroupGrid sub and pass the following two parameters in it  the grid you wish to group and a Variant array of the column keys to group, for example:

GroupGrid iGrid1, Array("str1", "num1")

GroupGrid first removes all existing group rows and then sorts the grid using the specified columns as the sort criteria. After that the pDoGrouping sub is called that inserts the required group rows.
