Back to Devexpress

TileView.EditFormPrepared Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-tileview-caa30c04.md

latest4.1 KB
Original Source

TileView.EditFormPrepared Event

Allows you to customize the Edit Form that is about to be displayed.

Namespace : DevExpress.XtraGrid.Views.Tile

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Editor")]
public event EditFormPreparedEventHandler EditFormPrepared
vb
<DXCategory("Editor")>
Public Event EditFormPrepared As EditFormPreparedEventHandler

Event Data

The EditFormPrepared event's data class is EditFormPreparedEventArgs. The following properties provide information specific to this event:

PropertyDescription
BindableControlsProvides access to the collection of controls used to edit the processed data record. Controls are indexed by field names or grid columns. Inherited from EditFormEventArgsBase.
PanelGets the container that arranges editors and buttons on the Edit Form. Inherited from EditFormEventArgsBase.
RowHandleGets the handle that identifies the grid row for which the Edit From is displayed/hidden. Inherited from EditFormEventArgsBase.

The event data class exposes the following methods:

MethodDescription
FocusField(GridColumn)Sets input focus to the editor that corresponds to the specified GridColumn.
FocusField(String)Sets input focus to the editor that corresponds to the grid column with the specified GridColumn.FieldName.

Remarks

You can handle the EditFormPrepared event to manipulate the Edit Form that is about to be displayed. To get the handle that identifies a grid row for which the Edit Form is about to be displayed, use the RowHandle event argument. The BindableControls property provides access to the collection of editors on the Edit Form that are bound to the underlying data source.

While handling the EditFormPrepared event, you can focus a specific editor using the FocusField method.

Before the EditFormPrepared event, the TileView.EditFormShowing event fires, allowing you to cancel the action.

See Also

EditFormShowing

EditFormHidden

Rows

TileView Class

TileView Members

DevExpress.XtraGrid.Views.Tile Namespace