System.Windows.Forms.BindingSource.ResetItem Method

Causes a control bound to the System.Windows.Forms.BindingSource to reread the item at the specified index, and refresh its displayed value.

Syntax

public void ResetItem (int itemIndex)

Parameters

itemIndex
The zero-based index of the item that has changed.

Remarks

The BindingSource.ResetItem(int) method notifies all controls bound to the item at the specified BindingSource.Position to refresh their values. The method does this by raising the BindingSource.ListChanged event with System.ComponentModel.ListChangedEventArgs.ListChangedType set to System.ComponentModel.ListChangedType.ItemChanged.

BindingSource.ResetItem(int) is automatically called whenever changes are made to the value of an individual item. However, the programmer can also call this method explicitly.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0