-
Notifications
You must be signed in to change notification settings - Fork 1
Grid
The Grid, as a Control, provides visual, mouse, and keyboard interaction with a Table. A Table is to a Grid Control as a Set is to a List Control. Both provide data content for the Control to display and edit.
Clicking on a cell causes that cell to enter edit mode. Arrow and tab keys allow navigation among cells. Pressing the up arrow in a cell in the top most visible row causes the grid to scroll up one row. Pressing the down arrow on the bottom most visible row causes the grid to scroll down one row. Pressing the PgUp key causes the grid to scroll up one whole page. Pressing the PgDn key causes the grid to scroll down one whole page.
The grid control's content is largely controlled by which ever table you provide. The same grid control can switch between different tables to display disparately different data in row / column format. All of the type specifics are handled by the property Set and property Table.
The column headings are buttons. Clicking one of these buttons affects the sort order of displayed rows. The table dictates which columns map to which ordering. Clicking the same column causes the ascending / descending order of the rows to flip.
Click and hold the left mouse button over the divider between adjacent column headings to adjust the column width. Drag mouse left or right and release mouse button.
The Grid supports a double click event. The callback includes the row and column index of the clicked cell.