DataView
Leave feedback
On this page
Inheritance: java.lang.Object
public class DataView
Represents a data bindable, customized view of a DataTable for sorting, filtering, searching, editing, and navigation. The DataView does not store data, but instead represents a connected view of its corresponding DataTable. Changes to the DataView\u2019s data will affect the DataTable. Changes to the DataTable\u2019s data will affect all DataViews associated with it.
| Constructor | Description |
|---|---|
| DataView(DataTable table) | Initializes a new instance of the DataView class with the specified DataTable. |
| Method | Description |
|---|---|
| getCount() | |
| getTable() | |
| get(int i) | |
| close() |
public DataView(DataTable table)
Initializes a new instance of the DataView class with the specified DataTable.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| table | DataTable | table to be represented by this view. |
public int getCount()
Returns: int - the number of records in the DataView after RowFilter and RowStateFilter have been applied.
public DataTable getTable()
Returns: DataTable - the source DataTable.
public DataRowView get(int i)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| i | int | row position |
Returns: DataRowView - the element at the specified index.
public void close()
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.