PXGrid is a data-bound UI container control that renders a table with
multiple records from its associated data source. For a single record, the object can be
displayed in form view mode, which provides navigation buttons to move between records. For
form view mode to be defined, PXGrid must include the
RowTemplate element, which can contain controls for the record fields and
layout rules for these controls.
An ASPX page can contain PXGrid as a main container that is included
immediately in the page. A grid container, as the diagram below shows, can also be included in
the following types of containers:
PXFormView
PXTabItem
PXSmartPanel
Figure 1. Nesting rules for a PXGrid container in an ASPX page
A grid container can include multiple PXGridColumn objects and a single
RowTemplate element. In the ASPX code, grid columns are included in the
Columns element, whereas controls for the form view of the grid belong to
the RowTemplate element, as the following code snippet
shows.