Grids
A grid is a composite control. It is parent to a collection of other controls that serve as grid columns. These controls can be used as grid columns:
- Button
- Conditional Image Button
- DropDownList
- Image
- Image Button
- Label
- Popup
- PopupMenu
- TextBox
- Toggle
Labels are most commonly used for grid columns, because most grids are display-only.
To specify a sort order for a grid, use the Sort Binds attribute of any of the grid columns. The value of this attribute will be one or more properties of the parent model in a comma-separated list. The column will be sorted based on the specified properties, in the order in which they're listed.
For example, if you specify Employee, JobClassification.Code as the sort binds for the Job Classification column in a labor cost grid, the column will be sorted by employee ID first, and then by job classification code. Each property that you use for sorting must also be present as a grid column, although it does not need to be visible.