FREE TRIAL

|

☀
☾

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 T doesn't match the type parameter used when calling SetDataSource<T>(IList<T>)

System.ArgumentException

Thrown when SetDataSource<T>(IList<T>) hasn't been called or was set to null

See Also
SetDataSource<T>(System.Collections.Generic.IList<T>)
☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC