 ---------------------------------------------------
|                                                   |
| TextBox Custom Editing                            |
|                                                   |
| iGrid.NET Extra Samples                           |
| Copyright (c) 10Tec Company                       |
| All rights reserved                               |
|                                                   |
| Available editions:                               |
| >> iGrid.NET 2.5, VS2005 C#/VB.NET                |
|                                                   |
 ---------------------------------------------------

Description:
============
In some cases you need more functionality than the built-in iGrid text editor provides you with. Then you can use an external control which has the required functionality to edit the iGrid cells.

In this sample we allow the user to edit the cells using the standard textbox control with the auto-complete feature turned on. The AutoCompleteSource property of our textbox editor is set to AutoCompleteSource.FileSystem which causes the textbox to suggest appropriate filenames as the user is typing charcaters into the textbox.

Short Code Explanation:
=======================
The main part of the custom editing functionality is implemented in two iGrid.NET events, RequestEdit and QuitCustomEdit. The former event suppresses the default behavior when the built-in iGrid editor is used and displays our editor over the current cell. The latter event is raised by iGrid each time when we should finish our custom editing, and we just return the input focus back to the grid in it.

The rest custom editing functionality is in the Leave and KeyDown event handlers of our custom textbox editor. For instance, the KeyDown event is used to mimics the iGrid default behavior when the editing is finished by the ENTER key or cancelled by ESC.
