GridList<T>.GetRowIndex
GetRowIndex(int)
Get the grid row index of the element at sourceIndex
Declaration
public readonly int GetRowIndex(int sourceIndex)
Parameters
Type | Name | Description |
---|---|---|
int | sourceIndex | A 1D index into Source |
Returns
Type | Description |
---|---|
int | The row into the grid of the element at |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the grid hasn't been constructed via CreateWithRows(IList<T>, Int32) or CreateWithColumns(IList<T>, Int32) |