Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

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

#Declaration

public bool FocusField(
    string fieldName
)

#Parameters

Name Type Description
fieldName String

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

#Returns

Type Description
Boolean

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

#Remarks

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