GRID: based on QTableWidget, you need to load cell values into it, since the values are handled by hbQt directly. Internally it uses QTableWidgetItem for strings and a proper widget in editing. To retrieve data you need to check the cell values.
VIRTUALGRID: based on QTableView, it uses callbacks to display cell values/colors/styles etc. It actually works on DBF and arrays. The callback function answer to Qt reading data from DBF or array. The difference is that DBF is "live", data is stored on the "live" database and it may be opened in shared mode and someone else can change it (with a bit of sync with the program). On arrays, instead, we work on a clone.
My proposal is to change a single line of code
From:
Code: Select all
::aItems := aClone( aValue )
Code: Select all
::aItems := aValue
This is a incompatible change since you may now load different virtualgrid using one array, you won't be able to do this after this change !
What do you think ?