ComponentOne DataObjects for .NET
PositionChanged Event (BaseDataSourceComponent)

C1.Data.2 Assembly > C1.Data Namespace > BaseDataSourceComponent Class : PositionChanged Event
Fired when controls bound to this component change their 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 this component, by its CurrencyManager object. 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, the PositionChanged event fires. It allows you to associate business logic with changes in current row position.

See Also