A newer version of this page is available. Switch to the current version.

EditFormPreparedEventArgs.FocusField(String) Method

Sets input focus to the editor that corresponds to the grid column with the specified GridColumn.FieldName.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.1.dll


public bool FocusField(
    string fieldName


Name Type Description
fieldName String

The field name of the GridColumn that corresponds to the target editor in the EditForm.


Type Description

true, if input focus was set to the editor; otherwise, false.


Use the FocusField method to set input focus to the editor in the Edit Form that corresponds to the GridColumn with the specified GridColumn.FieldName property value.

See Also