# Hiding the Selection When Focus is Lost

Learn how to hide selection and focus highlighting in the Spread component when it loses focus. Customize the focus indicator for a cell.

## Content



By default, the Spread component displays the focus rectangle and highlights selections, regardless of whether the component has the focus. If you prefer, you can set the component to hide the focus rectangle and selection highlighting when the component does not have the focus. In this case, the component still displays the focus and highlight selections when the component regains the focus. (This does not apply when [EditModePermanent](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.FpSpread.EditModePermanent.html) is set to True, in which case the focus rectangle and selection highlighting are not displayed.) For more information refer to the [RetainSelectionBlock](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.FpSpread.RetainSelectionBlock.html) property of the [FpSpread](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.FpSpread.html) class.

You can specify that edit mode is always on in the spreadsheet. When edit mode is always on, the spreadsheet acts like a form, where the user can enter data in any data field and the focus rectangle is not displayed. Only a blinking I-bar is displayed in a cell to show the cursor. For more information refer to the [EditModePermanent](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.FpSpread.EditModePermanent.html) property of the [FpSpread](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.FpSpread.html) class.

For more information about the focus indicator, refer to [Customizing the Focus Indicator for a Cell](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-cell-indicators/spwin-cellfocusind).

## See Also

[Specifying What the User Can Select](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-interactselection/spwin-selsetuser)

[Customizing the Selection Appearance](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-interactselection/spwin-selsetappear)

[Working with Selections](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-interactselection/spwin-seladdremove)

[Working with Deselections](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-interactselection/working-with-deselections)