CollectionView manages current record by implementing the ICollectionView interface. It allows you to obtain the current position of a record in the collection using CurrentPosition property of the C1CollectionView class. This class provides various methods to change the current position of an item in a view, which are listed below:
The following GIF displays how the current record management is implemented using MoveCurrentTo method.
In the following example, we used DataGridView and ComboBox controls wherein item selected from the ComboBox is set as the current item in DataGridView using the MoveCurrentTo method. By default, invoking the MoveCurrentTo method sets specified item in the view as the current item. However, you can select and move the current row to the top of the grid by handling the CurrentChanged event as implemented in the code below: