 ---------------------------------------------------
|                                                   |
| Rating Stars                                      |
|                                                   |
| iGrid.NET 1.60 Extra Samples                      |
| Copyright (c) 10Tec Company                       |
| All rights reserved                               |
|                                                   |
| Environment: .NET Framework 1.1, VS2003           |
|                                                   |
 ---------------------------------------------------

Description:
============
This sample demonstrates how to display rating stars from a predefined range in the iGrid.NET cells.

Short Code Explanation:
=======================
iGrid.NET provides you with custom draw functionality which allows you to display any content in a cell. In this example we used it to show rating stars. 

The main form of the sample has only one column which is custom draw. In cells of this column we actually store numeric values from 0 to 100 which represent a rating mark. On the main form we have a picture box which is invisible; it stores image consisting of five stars (each star corresponds to 20 points). In the CustomDrawCellForeground event we analyze how many stars should be displayed and draw only the needed part of the image stored in the picture box.

