BCGControlBar Library for .NET
GetRowIndex(GridDataItem,Boolean,Int32,Int32) Method




Data item contained in a row, whose index should be retrieved.
Specifies whether to look for sorted row index.
Start row index to look from.
End row index that limits the search.
Returns index of row that contains the specified GridDataItem by looking for this item within specified row range.
Syntax
'Declaration
 
Public Overloads Function GetRowIndex( _
   ByVal item As GridDataItem, _
   ByVal needSortedIndex As Boolean, _
   ByVal startIndex As Integer, _
   ByVal endIndex As Integer _
) As Integer
'Usage
 
Dim instance As GridData
Dim item As GridDataItem
Dim needSortedIndex As Boolean
Dim startIndex As Integer
Dim endIndex As Integer
Dim value As Integer
 
value = instance.GetRowIndex(item, needSortedIndex, startIndex, endIndex)
public int GetRowIndex( 
   GridDataItem item,
   bool needSortedIndex,
   int startIndex,
   int endIndex
)
public: int GetRowIndex( 
   GridDataItem* item,
   bool needSortedIndex,
   int startIndex,
   int endIndex
) 
public:
int GetRowIndex( 
   GridDataItem^ item,
   bool needSortedIndex,
   int startIndex,
   int endIndex
) 

Parameters

item
Data item contained in a row, whose index should be retrieved.
needSortedIndex
Specifies whether to look for sorted row index.
startIndex
Start row index to look from.
endIndex
End row index that limits the search.

Return Value

-1 if row is not found, or a GridDataRow object..
Requirements

Target Platforms: 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

Reference

GridData Class
GridData Members
Overload List

Send Feedback