Thetype exposes the following members.
Raises the CanceledEditing event.
Raises the CancelEditing event.
Raises the DrawCellControl event.
Raises the EndEditing event.
Raises the HideCurrentCell event.
Raises the InitCurrentCell event.
Raises the LeftCell event.
Raises the ModifyCell event.
Raises the RefreshCurrentCell event
Raises the ResetCurrentCell event.
Raises the StartEditing event.
Raises the StoreCurrentCell event.
Raises the ValidateCell event.
Gets or sets a value indicating if you want the grid to draw inactive cell contents.
Gets the GridControl with which this custom control is associated.
Gets or sets a value indicating if your custom control processes enter key events.
Gets or sets a value indicating if your custom control processes horizontal arrow key events.
Gets or sets a value indicating if your custom control processes vertical arrow key events.
Gets or sets a value that indicates whether the cell style from the grid should be applied to the custom control.
Canceled Editing event.
Cancel Editing event.
Draw Cell Control event.
End Editing event.
Hide Current Cell event.
Initialize Current Cell event.
Left Cell event.
Modify Cell event.
Refresh Current Cell event.
Reset Current Cell event.
Start Editing event.
Store Current Cell event.
Validate Cell event.
You can configure instances of this class using the properties associated with the class. You can monitor or customize the behavior of the controls when grid events occur by attaching delegates to the many events exposed by the class.
After you configure the CellControl instance, it can be used in grid cells by creating or obtaining a style object, setting the CustomControl property to the desired CellControl, and then applying the style to the grid.
|Stingray Grid .NET currently supports the registration of up to 32 .NET cell controls.|
When a .NET control is used as a grid cell editor, only one instance of the control is held, even when the control is used with a range of cells. When a grid cell that contains the custom control becomes the current cell, the control is initialized with the cell contents for the current cell and is made visible in the current cell.
By default, the stored grid value (Value) is used to initialize the control Text property upon initialization. For more advanced behavior, attach delegates to the InitCurrentCell and StoreCurrentCell events.
Some .NET controls, such as NumericUpDown controls and single-line edit controls, do not size themselves exactly as instructed. In these cases, the .NET cell controls may not completely fill a grid cell. These controls may also consume a larger screen area than the size of the cell in which they are embedded.
Currently, delegates must be used to customize the behavior of .NET controls. Derivation from CellControl is not currently supported.