AxpDataGrid

AxpDataGrid.CurrentDataView Property

A .NET DataView that either contains all records (if the property DataSource is set) OR the data records on the current page in all other cases.

[Visual Basic]
Public ReadOnly Property CurrentDataView As DataView
[C#]
public System.Data.DataView CurrentDataView {get;}

Property Value

A .NET DataView that either contains all records (if the property DataSource is set) OR the data records on the current page in all other cases.

Remarks

If the SQL property is set a DataView is created internally for the currently active page.
If an external datasource is in use, the whole recordset is available in this property.

Notes
The data content can be inspected and ALTERED before rendering if needed.
The DataView is available in the grid's Load event (or after a call to DataBind if UseDataBinding=True).
Check on null (C#) / Nothing (VB) before use.

See Also

AxpDataGrid Class | Axezz.WebControls Namespace