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

Description:
============
This sample provides you with a class (manager) which allows you to add an
ability to resize rows through visual interface to your grid.

Short Code Explanation:
=======================
The main part of the example is located in the iGRowResizeManager class. This 
class has only one public method, named ManageGrid. Invoke this method and pass 
there a grid as the parameter if you want the user to be able to resize the 
grids rows through visual interface. With the OnlyFirstColumn public property 
you can specify whether the user can change the height of a row in the first 
column only or in all the columns. 

Also this class allows the user to automatically fit a rows height by its 
contents. To do it the user should double-click the rows divider.

To indicate that you can resize a row, the iGRowResizeManager class uses one of 
the standard Windows cursors, and you can notice that this cursor is slightly 
different from the one used by iGrid to resize columns. We did so to simplify 
the sample, but you may want to have the identical cursors in your real-world app. To do that, use the cursor from the file 'row_resize.cur' supplied with this sample. You can include it into the resources of your project, and in this 
case you should replace the following code line in the iGRowResizeManager class:

[C#]
private static readonly Cursor cCursor = Cursors.HSplit;

[VB]
Private Shared ReadOnly cCursor As Cursor = Cursors.HSplit

with:

[C#]
private static readonly Cursor cCursor = 
  new Cursor(typeof(iGRowResizeManager), "row_resize.cur");

[VB]
Private Shared ReadOnly cCursor As Cursor = _
  New Cursor(GetType(iGRowResizeManager), "row_resize.cur")

If you want to load the cursor from file, you should replace the following code 
line in the iGRowResizeManager class:

[C#]
private static readonly Cursor cCursor = Cursors.HSplit;

[VB]
Private Shared ReadOnly cCursor As Cursor = Cursors.HSplit

with:

[C#]
private static readonly Cursor cCursor = 
  new Cursor(@"[Path To File]row_resize.cur");

[VB]
Private Shared ReadOnly cCursor As Cursor = _
  New Cursor("[Path To File]row_resize.cur")
