IDataGridViewEditingControl.EditingControlValueChanged 属性


获取或设置一个值,该值指示编辑控件的值是否与承载单元格的值不同。Gets or sets a value indicating whether the value of the editing control differs from the value of the hosting cell.

 property bool EditingControlValueChanged { bool get(); void set(bool value); };
public bool EditingControlValueChanged { get; set; }
member this.EditingControlValueChanged : bool with get, set
Public Property EditingControlValueChanged As Boolean


如果控件的值与单元格的值不同,则为 true;否则为 falsetrue if the value of the control differs from the cell value; otherwise, false.


将属性设置为true , 以指示承载单元格的状态已更改, 并且其用户界面 (UI) 需要更新以反映值的更改。 EditingControlValueChangedThe EditingControlValueChanged property is set to true to indicate that the hosting cell's state has changed and its user interface (UI) needs to be updated to reflect this change in value. 在更新后, 所属单元或表会将false此属性重置为。The owning cell or table will reset this property to false after an update.


如果true在此属性的实现中返回, 则不会自动更改显示的值。Returning true in your implementation of this property does not automatically change the displayed value. 在编辑控件中的值发生更改时, 必须通过传递DataGridView trueNotifyCurrentCellDirty(Boolean)方法来通知更改。When the value changes in the editing control, you must notify the DataGridView of the change by passing true to the NotifyCurrentCellDirty(Boolean) method.