Help Center

Enabledproperty

Returns or sets a value that determines whether a form or control can respond to user-generated events. Visual Basic only?

Windowspropertydoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

PROPERTY Enabled () AS BOOLEAN
PROPERTY Enabled (BYVAL bEnabled AS BOOLEAN)

Parameters

NameDescription
bEnabledTrue (Default): The user can interact with the grid, select cells, and trigger events.
False: The grid is "locked." It will not respond to mouse or keyboard input.

Description

Determines whether the grid can respond to user-generated events such as mouse clicks, keyboard navigation, or scrolling.

Example

' To disable and show a visual change: grif.Enabled = False grid.ForeColor = vbGrayText grid.BackColor = vbButtonFace

Reference