Bound Table¶
Use this control to build a list containers, containers will be filled with a collection of objects.
Description¶
You can represent any number of objects and optionally add or delete objects, every object is contained in a row and each columns represent one attribute . You are able to select which attributes to represent, you can select if you want a paging system so there wont be all data on display at the same time, paging position can be also selected (top, bottom or both), adding a header and a footer is also available. you have options for numbering and changing the tables style and also you can have a one row table where objects are aligned one next to the other.
Options¶
Features¶
| Name | Description |
|---|---|
| Filtering and Sorting, Filtering Action | Filtering and sorting of the rows |
| Draw rows side by side | Aligning each row next to the previous |
| Alternate Rows Color | Changing color of every second row for better visualization |
| Rows Hover Effect | Highlights the row under the pointer. On by default |
| Show No Records Message | Shows a message when the collection is empty. On by default |
| Include Record Numbering | Numbering every row |
| Show Total Records Number | Adding a Label with the total number of objects on the bottom left |
| Does Not Make Form Dirty | Does not enable the Make Dirty indicator |
| Add Row Allowed | Enable button for adding rows |
| Delete Row Allowed | Enable buttons in front of every row for object deletion |
| Delete Multirow Allowed | |
| Show Delete Warning | A warning message will appear when deleting a row |
| Show Multi Warning Allowed | |
| Include Paging | Enable a paging system |
| └ Page Size | Choose number of rows per page |
| └ Allow User To Select Page Size | Lets the user choose among the Available Page Sizes (10, 20 and 50 by default) |
| └ Paging Position | Choose in which position the pagination will appear |
In Studio¶
A bound table on the form, and its Properties panel: the Model Binding, the features, the events (On Add Row and On Delete Row among them) and the style.
Example¶
An order with lines, where each line has a product and a quantity.
View model
OrderLines(collection)Product(class)Name(attribute)
Quantity(attribute)
Layout
- Bound Table: model binding
OrderLines, with the options to allow adding and deleting rows- Header row: one cell with a Label
Product, one with a LabelQuantity - Body row (repeated for each item of the collection): a cell with a Text Box bound to
Product.Name, and a cell with a Text Box bound toQuantity - Footer row (optional): a cell, spanning both columns, for a summary or totals
- Header row: one cell with a Label
