DataView

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.

Constructors

Constructor Description
DataView(DataTable table) Initializes a new instance of the DataView class with the specified DataTable.

Methods

DataView(DataTable table)

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.

getCount()

public int getCount()

Returns: int - the number of records in the DataView after RowFilter and RowStateFilter have been applied.

getTable()

public DataTable getTable()

Returns: DataTable - the source DataTable.

get(int i)

public DataRowView get(int i)

Parameters:

Parameter Type Description
i int row position

Returns: DataRowView - the element at the specified index.

close()

public void close()