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

DataGridView.CloseEditor(Boolean) Method

Closes a cell in-place editor.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

#Declaration

C#
public bool CloseEditor(
    bool applyChanges
)

#Parameters

Name Type Description
applyChanges Boolean

true to apply a cell value modified in an in-place editor; otherwise, false.

#Returns

Type Description
Boolean

true if the in-place editor is closed; otherwise, false.

#Remarks

Use the DataGridView.EditorShowMode property to allow users to modify grid data in cell in-place editors. This property specifies a gesture that should invoke an in-place editor for a cell.

To open and close a cell in-place editor in code, use the OpenEditor and CloseEditor methods.

See Also