Version

GetIDPair Method (SelectedRowCollection)

Retrives a selected row's identification object by its index.
Syntax
'Declaration
 
Public Function GetIDPair( _
   ByVal index As Integer _
) As IDPair
public IDPair GetIDPair( 
   int index
)

Parameters

index
Index of the selected row to get the ID pair for.

Return Value

ID pair (data key + original index) of the specified selected row.
Remarks
In a paging or vertual scrolling scenario not all of the selected rows may be within the visible range. This method can be used to retrive data keys and original indices of all selected rows, including those that are currently out of range.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also