使用下列示例代码来获取当前的编辑值。

C#CopyCode image复制代码
string editingValue;
if(gridControl1.KeyboardFocusView.IsEditing)
   editingValue = gridControl1.KeyboardFocusView.EditingValue.ToString();
Visual BasicCopyCode image复制代码
Dim EditingValue As String
If gridControl1.KeyboardFocusView.IsEditing Then 
    EditingValue = gridControl1.KeyboardFocusView.EditingValue.ToString()
EndIf