Skip to main content

How to: Get the Currently Edited Value

The following code shows how you can obtain the text representation of the currently edited cell value.

using DevExpress.XtraGrid.Views.Base;

ColumnView view = gridControl1.FocusedView as ColumnView;
string editingValue = null;
if (view != null && view.IsEditing)
    editingValue = view.EditingValue.ToString();