Skip to content

GridBehavior Object

Description

Specifies the behavior of the Grid control when a mouse button or keystroke is performed on a row or group row in the grid.

For a list of all members defined in this module, see GridBehavior Members.

Object Model

GridBehavior Object Model
Child Diagram
Grid Notifications

Remarks

GridBehavior allows you to set the behavior of the Grid control when a mouse button or keystroke is performed on a row or group row in the grid (only mouse up and mouse down is supported in version 16.2). The Scheme allows the Grid control's behavior to easily be set to a pre-configured behavior, such as Outlook 2010 behavior. A full list of schemes can be found in the XTPGridBehavior enumeration.

By setting the Scheme to xtpGridBehaviorOutlook2010, you are instructing the Grid control to treat mouse clicks on rows like Outlook 2010 does. For example, in Outlook, when you right-click a row, that row will receive temporary focus while a context menu is displayed, then return focus to the row that had it before when the context menu is dismissed. The Scheme is all that is needed to control the behavior. However, you have complete control over each of these mouse settings.

To customize a behavior scheme, you would first set the desired Scheme, then use the GroupRow and Row properties to further customize the scheme. For example, you might like the Outlook 2010 behavior but want to change how the Outlook 2010 behavior handles the LeftButton MouseUp on a GroupRow.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.