After some research, I still can't find the solution for my problem. I have a table that it's filled with info from user, when a button is pushed. The idea is that once new information is inserted and the "add" button pushed, a new row is created on the table. For instance:
- Start with a table of 5 rows
- The user places the cursor at the third row (selected)
- The user clicks on add new row button
- A new row is added at row #3 and the old third row is now row #4
Does any of you have a suggestion?
Here's one approach. Create a property in your UIFigure called
CurrentRow
.Whenever the user clicks on a cell in the table, the
UITableCellSelection
event is fired and you can set theCurrentRow
property to be the selected row.Next the user clicks the "new row button" and we use the
ButtonPushed
event to insert the new row.Obviously, you will get the new row values from some other control on your form, whereas I've just assigned hard-coded values as an example.