DataGridView

Inheritance Hierarchy

          IWebComponent

          IWebControl

          IWebDataGridView

          WebDataGridView

Description

The DataGridView component is used to present data from relational repository data sources as a table.

Comments

The following repository objects can be used as data sources: Query, Table, View, External Table.

To provide the component work, determine the mobj property in the design mode or the IDataGridView.DataSet property in the web form execution mode. The list of tale columns will correspond with the list of fields in the selected data source. Column visibility and header and data display settings can be determined in the columns property.

Set up columns

The table uses the page mode of loading and displaying of data by default. It minimizes the query execution time and speeds up the work of the entire web form. To manage the work, use the allowPaging, recordsCount, recordsLimit, and showPaginationPanel properties.

In the tableStyle property one can select one of the alternating formatting styles for a table.

Work Features

If a data source for the component is Query, take into account the following feature to ensure correct work of sorting: if the query contains keywords that are different from SELECT and FROM, such a query must be set up as a nested one. For example, rewrite the query SELECT * FROM TABLE_DATA LIMIT 5000 as follows: SELECT * FROM (SELECT * FROM TABLE_DATA LIMIT 5000) subquery.

The component has different properties available in the design mode and in the web form execution mode.

The component has the onSelectionChange event that occurs on table cell selection change.

Example

See also:

Web Form Components