 ---------------------------------------------------
|                                                   |
| Progress Bar Cells                                |
|                                                   |
| iGrid.NET Extra Samples                           |
| Copyright (c) 10Tec Company                       |
| All rights reserved                               |
|                                                   |
| Available editions:                               |
| iGrid.NET 2.0, VS2005 C#/VB.NET                   |
|                                                   |
 ---------------------------------------------------

Description:
============
This sample demonstrates how to turn your cells with numeric values into a progress bar indicator.

Short Code Explanation:
=======================
The main functionality is encapsulated in one standalone class called iGProgressBarCellManager. To make it working in your app, just do the following:

1) Add the iGProgressBarCellManager class implementation to your project:

C#: iGProgressBarCellManager.cs file
VB.NET: iGProgressBarCellManager.vb file

2) Create a new instance of the iGProgressBarCellManager class, for instance:

C#: private iGProgressBarCellManager m_PBCMgr = new iGProgressBarCellManager();
VB.NET: Private m_PBCMgr As New iGProgressBarCellManager

3) Attach it to the required column of the required grid with the Attach method:

C#: m_PBCMgr.Attach(iGrid1, iGrid1.Cols[1]);
VB.NET: m_PBCMgr.Attach(iGrid1, iGrid1.Cols(1))

Thats all - after that the cells from the specified column will be drawn like progress bars. This is done with custom drawing. iGProgressBarCellManager sets the corresponding custom draw flag for the specified column and attach to the specified grid an event handler for the CustomDrawCellForeground event in which the progress bars are drawn instead of the numeric cells.

