Back to Devexpress

EditFormPreparedEventArgs.FocusField(GridColumn) Method

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-editformpreparedeventargs-dot-focusfield-x28-devexpress-dot-xtragrid-dot-columns-dot-gridcolumn-x29.md

latest2.0 KB
Original Source

EditFormPreparedEventArgs.FocusField(GridColumn) Method

Sets input focus to the editor that corresponds to the specified GridColumn.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public bool FocusField(
    GridColumn column
)
vb
Public Function FocusField(
    column As GridColumn
) As Boolean

Parameters

NameTypeDescription
columnGridColumn

The GridColumn that corresponds to the editor to which to set input focus.

|

Returns

TypeDescription
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 specified GridColumn.

See Also

EditFormPrepared

EditFormPreparedEventArgs Class

EditFormPreparedEventArgs Members

DevExpress.XtraGrid.Views.Grid Namespace