Back to Devexpress

TcxEditorRowProperties Class

vcl-cxvgrid-ebe22023.md

latest8.1 KB
Original Source

TcxEditorRowProperties Class

Stores vertical grid row settings in unbound mode.

Declaration

delphi
TcxEditorRowProperties = class(
    TcxCustomEditorRowProperties
)

Remarks

A vertical grid row contains one header and displays one data cell per column. The TcxEditorRowProperties class implements general vertical grid row settings in unbound data access mode.

In-Place Editors

A vertical grid row can use any editor shipped with the ExpressEditors Library as an in-place editor for cell edit operations. An in-place editor instance exists (and, therefore, has its own WinAPI handle) only when a row cell is being edited. Otherwise, the column displays a static editor image for resource usage optimization.

To switch between available in-place editors, you can use the EditPropertiesClass property. Use the EditProperties property to configure the in-place editor associated with the vertical grid row.

In-Place Editors and Repository Items

Alternatively, you can assign an edit repository item component to the RepositoryItem property and use the repository item to define the active in-place editor and customize its settings.

Note

If an edit repository item is assigned to the RepositoryItem property, EditProperties, EditPropertiesClass, and EditPropertiesClassName properties have no effect.

Multiple In-Place Editors in One Row

You can handle OnGetEditProperties and OnGetEditingProperties events to dynamically change the assigned in-place editor and its settings based on custom conditions.

Important

Do not change EditPropertiesClass, EditPropertiesClassName, and EditProperties property values directly in OnGetEditProperties and OnGetEditingProperties event handlers.

To change the active editor and modify its settings safely within these event handlers, use the RepositoryItem property and TcxEditRepositoryItem class descendants.

Main API Members

The list below outlines key members of the TcxEditorRowProperties class that allow you to configure vertical grid rows.

Appearance Customization

OnGetDisplayTextAllows you to change display text for individual cells.OnGetFilterImages | OnGetFilterValuesAllow you to customize the vertical grid row’s filter drop-down window.

In-Place Editor Settings

DisplayEditPropertiesReturns active in-place editor settings for individual grid row cells by their indexes.EditPropertiesAllows you to customize the settings of the assigned in-place editor.EditPropertiesClassSpecifies the active in-place editor class. At design time, you can use the EditProperties node in the Object Inspector to assign an in-place editor to the vertical grid row and configure the editor.OnGetEditPropertiesAllows you to display different in-place editors for different records or customize editor settings based on custom conditions.OnGetEditingPropertiesAllows you to change the assigned in-place editor and customize its settings when a user invokes the editor.PropertiesValueProvides access to active in-place editor settings.RepositoryItem

Allows you to associate the vertical grid row with a repository item that defines the required in-place editor and its settings.

Tip

Repository items are particularly useful if you need to share in-place editor settings between multiple vertical grid rows or customize editor settings in OnGetEditProperties and OnGetEditingProperties event handlers.

Data Management

DataBindingProvides access to data binding settings.ValueAllows you to access and modify the edited cell value.Values | DisplayTextsReturn values and display text strings of individual grid row cells by their indexes.

Vertical Grid Control-Related API Members

ItemIndexReturns the vertical grid row’s index.ShowExpressionEditorInvokes the Expression Editor dialog.VisibleForExpressionEditorSpecifies if the vertical grid row is visible in the Expression Editor dialog.

General-Purpose API Members

OptionsAllows you to configure end-user permissions for the grid row.

Direct TcxEditorRowProperties Class Reference

The TcxEditorRow.Properties property references a TcxEditorRowProperties object.

Inheritance

TObject TPersistent TCollectionItem TcxInterfacedCollectionItem TcxCustomRowProperties TcxCaptionRowProperties TcxCustomEditorRowProperties TcxEditorRowProperties

See Also

TcxDBEditorRowProperties Class

TcxCollectionItemEditorRowProperties Class

TcxDBEditorRowItemProperties Class

TcxEditorRowItemProperties Class

TcxEditorRowProperties Members

cxVGrid Unit