DataGridView.RefreshEdit 方法

定義

儲存格在編輯模式下時,使用基礎儲存格值重新整理目前儲存格的值,並捨棄先前的任何值。

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

傳回

如果成功,則為 true;如果發生 DataError 事件,則為 false

備註

呼叫這個方法,強制儲存格在編輯模式中更新其顯示值。 當外部進程修改儲存格值,而您想要通知使用者變更時,即使使用者指定的變更因此遺失,這非常有用。

適用於

另請參閱