Spread Windows Forms 10.0 Product Documentation > Developer's Guide > Customizing Sheet Interaction > Customizing Interaction with the Overall Component > Handling Events of Subeditors |
You can handle events of subeditors within a cell in the Spread component.
The subeditor has a SubEditorClosed event and a SubEditorOpening event. This allows you to know when the subeditor opens and closes.
The cell type brings up an editor when editing the cell. The editor control can be text based or graphics based. The editor control can drop-down lists, bring up pop-up dialogs, and so on. The drop-down list or pop-up dialog is known as the subeditor. The ISubEditor interface can be used to create a custom subeditor. The IEditor interface can be used to create a custom editor.
Existing editors can be used in cells. The following code uses the default date time cell formatting on cell (1,1):
C# |
Copy Code
|
---|---|
fpSpread1.Sheets[0].Cells[1, 1].Editor = new FarPoint.Win.Spread.CellType.DateTimeCellType();
|
Visual Basic |
Copy Code
|
---|---|
FpSpread1.Sheets(0).Cells(1,1).Editor = New FarPoint.Win.Spread.CellType.DateTimeCellType
|