DataView
Leave feedback
On this page
Inheritance: java.lang.Object
public class DataView
Represents a databindable, customized view of a DataTable for sorting, filtering, searching, editing, and navigation.
| Constructor | Description |
|---|---|
| DataView(DataTable table) | Initializes a new instance of the DataView class with the specified DataTable. |
| Method | Description |
|---|---|
| getCount() | Gets the number of records in the DataView. |
| getTable() | Gets the source DataTable. |
| get(int recordIndex) | Gets a row of data from a specified table. |
| close() | Closes the DataView. |
public DataView(DataTable table)
Initializes a new instance of the DataView class with the specified DataTable.
Parameters:
public int getCount()
Gets the number of records in the DataView.
Returns: int - The number of records in the DataView.
public DataTable getTable()
Gets the source DataTable.
Returns: DataTable - A DataTable that provides the data for this view.
public DataRowView get(int recordIndex)
Gets a row of data from a specified table.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| recordIndex | int | The index of a record in the DataTable. |
Returns: DataRowView - A DataRowView of the row that you want.
public void close()
Closes the DataView.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.