Tipswip   >   Windows   >   Data Grids
Data grids are handy for quickly showing all the columns and rows which are in a data list.
The downside on the data grid is that the data list definition must be exactly defined as you want to display the data. (The order and names of columns.)Adding a new line to a data grid is no problem.
Moving the cursor (the focus) to the newly added line in the data grid can be a challenge!
You can change the current cell in a data grid to another line by assigning the $gridvcell property.
There are 2 "tricks" you need to know about in order to move the cursor (focus) to the new line.
1. After adding the new line to the data list, you need to redraw the data grid so that the data grid will "have" the new line. (If you try to assign the $gridvcell to the last line before a redraw the data grid object doesn't know about the new line yet.)
2. If the data grid's $fixedrow property is true (shows column names header), then the $gridvcell value will be the data list line +1. If the $fixedrow property is false, the $gridvcell property will be equal to the data list line.