GridView.GetDataSourceAsGrid
GetDataSourceAsGrid<T>()
Wraps the GridView's underlying data source in a GridList<T> to be indexable by a GridIndex, where Row is the index into the PrimaryAxis and Column is the index into the CrossAxis.
Declaration
public GridList<T> GetDataSourceAsGrid<T>()
Returns
Type | Description |
---|---|
GridList<T> | The GridView's underlying data source wrapped as a GridList<T> |
Type Parameters
Name | Description |
---|---|
T | The type of GridList<T> to create. Must match the type parameter used when calling SetDataSource<T>(IList<T>) |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when |
System.ArgumentException | Thrown when SetDataSource<T>(IList<T>) hasn't been called or was set to |
See Also
SetDataSource<T>(System.Collections.Generic.IList<T>)