------------------------------------------------------------------------
 Auto-resizing of Columns to Have Equal Width Sample for iGrid ActiveX
 
 Control Version: 3.0
 Environment: Visual Basic 6

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

Description
===========
In this sample you can see an approach you can use if you need to have a grid with columns of the same width which is calculated automatically depending on the size of the grid.

Short Code Explanation
======================
The ResizeBeforeRedraw event of iGrid allows you to calculate and set the required width of columns just before the grid is redrawn after resizing. It is the ideal place to do such operations  the code can be even more complex.

Performing this task, you need to know the width of the useful area (cell area)  you calculate the width of each column based on this value. To calculate it, you need to know the width of the iGrid client area (without borders) and whether the vertical scrollbar will be visible. Such iGrids members as the Sys function and the VScrollBar.Thickness property will help you in that.
