The LC lessons (about DataGrid "DG") seem to assume that you want to populate a DG with data that you already have either via the Contents property or via a handler (that sets the dgData with data you already have).
But I want to be able to input data directly into the datagrid, as a user, without accessing properties or handlers.
In the comments section of the "How Do I Open a Table Cell for Editing" lesson, I found a tantalizing hint by Trevor DeVore; he wrote: "Just add a new row to the data grid (empty values in all columns) and then open the cell of the new row for editing."
I was able to find a section in the Dictionary/Guide: "How Do I Add a Row of Data to an Existing Data Grid?".
So, before I launch myself in the wrong direction, can someone please confirm that the right approach would be something like this:
- Put "" into the appropriate elements of the array
- Figure out what the next line number is going to be (I want to add a row at the end)
- Use "dispatch "ABC" to group" cmd
- Put the insertion point inside the first element of the new (empty) row so the user can start entering data (with cmd EditFieldText)
Thanks!