You are not logged in.
Pages: 1
FireMonkey 2 have TGrid component and TMS create TTMSFMXGrid.
What's the easiest way to display the data through mORMot Framework?
Offline
I did not get XE3, nor FM²...
So I can't directly help with it.
You can define the grid in virtual mode, then use TSQLTableJSON.GetCaption() for Row=0, i.e. field name, and GetString()/GetDateTime() and such for the cells data.
See how TSQLTableToGrid is implemented in unit SQLite3UI: it is for a VCL TDrawGrid in virtual mode, so could be re-used for any other virtual grid.
Offline
On second thoughts, you may be also interested by the conversion of a mORMOt TSQLTableJSON result set into a standard TDataSet.
I suspect your grid is able to link directly to it.
See http://blog.synopse.info/post/2012/06/2 … t-or-SynDB
Another possibility could be to use live bindings, in XE3.
Offline
Pages: 1