'Declaration Public Event PositionChanged As PositionChangeEventHandler
public event PositionChangeEventHandler PositionChanged
Event Data
The event handler receives an argument of type PositionChangeEventArgs containing data related to this event. The following PositionChangeEventArgs properties provide information specific to this event.
Property | Description |
---|---|
CurrencyManager | The CurrencyManager object managing current row position for the data member. |
DataMember | DataMember string identifying the member (node in master-detail hierarchy) that has changed current row position. |
NewPosition | Current row after position change. |
OldPosition | Current row before position change. |
Row | The row object that has become current. |
Remarks
Current row position is managed by the form containing the data set component. Each DataMember has its own current row position that is managed by a System.Windows.Forms.CurrencyManager object attached to it by the form. Data bound controls interact with CurrencyManager to synchronize with current row position and request moving to a new row position.
Whenever current row position changes for any of the data set data members, the PositionChanged event fires. It allows you to associate business logic with changes in current row position.
See Also