# Customizing Interaction Based on Events

Learn how to customize interaction based on events in the Spread component. Explore the various user-initiated events and corresponding responses available in the FpSpread class.

## Content



You can customize how the Spread component responds to user-initiated events. In the [FpSpread](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.FpSpread.html) class there are several events, from [ButtonClicked](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.FpSpread.ButtonClicked.html) to [LeaveCell](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.FpSpread.LeaveCell.html) to [SelectionChanged](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.FpSpread.SelectionChanged.html). Use events that correspond to user actions to initiate responses. For a list of events in the component, refer to the [FpSpread](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.FpSpread.html) class members. For events available for the sheet, refer to the [SheetView](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.SheetView.html) class members. For a list of events that can be used while in edit mode, refer to the [FarPoint.Win.SuperEditBase](/spreadnet/api/latest/online-win/FarPoint.Win/FarPoint.Win.SuperEdit.html) class.

The **FpSpread** class is derived from the **Control** class that has the following properties and events that are relevant to our understanding of events in Spread:

*   **Text** property and **TextChanged** event
*   **Click** event
*   **Enter** event

The **Text** property and **TextChanged** event are used by simple controls that have a single **Text** attribute (for example, the TextBox control). The Spread component is a more complex control that consists of rows and columns of cells. Each cell has its own **Text** property. The **Text** property of the cell is separate from the **Text** property of the Spread component. Since the Spread component does not use the component’s **Text** property, the **TextChange** event is never raised.

The **Click** event is used by simple controls that have a single area (for example, the Button control). The Spread component is a more complex control that consists of rows and columns of cells. The Spread component raises a **CellClick** event instead of a **Click** event. The [CellClick](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.FpSpread.CellClick.html) event contains more detailed information than the **Click** event.

The **Enter** event is raised when keyboard focus is moved from another control on the form to the Spread component.

## See Also

[Customizing Interaction in Cells](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell)

[Using Edit Mode and Focus](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-cell-focus)

[Customizing User Selection and Deselection of Data](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-interactselection)

[Using Drag Operations to Fill Cells](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-cell-dragops)

[Using Validation](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-cellvalid)

[Using Visible Indicators in the Cell](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-cell-indicators)

[Customizing Undo and Redo Actions](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-undoredo)

[Adding Custom Context Menu to a Component](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-cntrlcontextmenu)

[Using Double Click to Fill Cells](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-cell-clicktofill)