HideSelection Property
Description
Determines whether the currently selected rows will remain shaded when the GridControl loses focus.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property HideSelection() As Boolean
Remarks
When the GridControl loses focus, you can choose whether the currently selected rows remain shaded. By default, this property is FALSE.
- If FALSE, the currently selected rows will remain shaded when the GridControl loses focus.
- If TRUE, the current selection (shading only; the rows will still be visible without shading) will be hidden when the GridControl loses focus. The selection will become visible when the GridControl regains focus. This will not hide the rows; it only hides the shading that indicates which rows are selected.
Example
This sample illustrates how to remove the shading from the currently selected rows when the GridControl loses focus. The shading will return when the GridControl regains focus.
' This code causes the shading from the currently selected rows to hide when
' the GridControl loses focus.
wndGridControl.PaintManager.HideSelection = True
See Also
- GridPaintManager Object
- GridRow Selected Property
- GridSelectedRows Add Method
- GridSelectedRows DeleteAll Method
- GridSelectedRows Count Property
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.