ComponentOne DataObjects for .NET
PositionChanged Event (C1DataSet)

C1.Data.2 Assembly > C1.Data Namespace > C1DataSet Class : PositionChanged Event
Fired when one of the data set data members changes current row position.
Syntax
'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.

PropertyDescription
The CurrencyManager object managing current row position for the data member.  
DataMember string identifying the member (node in master-detail hierarchy) that has changed current row position.  
Current row after position change.  
Current row before position change.  
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