DataGridView.RefreshEdit 方法

定义

当单元格处于编辑模式时,使用基础单元格值刷新当前单元格的值,并放弃以前的任何值。

public:
 bool RefreshEdit();
public bool RefreshEdit();
member this.RefreshEdit : unit -> bool
Public Function RefreshEdit () As Boolean

返回

true 如果成功,则为 falseDataError 如果发生事件,则为

注解

调用此方法以强制单元格在编辑模式下更新其显示值。 当外部进程修改单元格值并想要通知用户更改时,即使用户指定的更改因此丢失,这非常有用。

适用于

另请参阅