An example of an editable CoreTable
Usage
- A doubleclick on a cell will bring you in the edit-mode
- The keyboard-navigation works in both mode but the keys are different.
See keyboard shorcurs.
- If you are in the edit-mode on the last row, you can create new rows by hitting ENTER
- You can leave the edit-mode by hitting F2 or ESC, ESC aborts the actual editing.
- Changed cells will become red after you leave them.
In this example the editing is limitid by following conditions
- The column "id" is readonly
- The columns "Name" and "First Name" accept any Text
- In the column "Department" you may only choose "Administration" or "Development" as value
- The field "Date of birth" must have a valid date
- The field "Salery" must contain a number
These limitations are done by setting appropriate editors for the different columns of the table.
How to retrieve changed data will be explained in the next example.