Version

GetIDPair Method (SelectedCellCollection)

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

Parameters

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

Return Value

Item ID pair (row's data key + original index and columns key + index) of the specified selected cell.
Remarks
In a paging or vertual scrolling scenario not all of the selected cells may be within the visible range. This method can be used to retrive data keys and original indices of all selected cells, 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