I have Delphi 10.3 and I want to develop for Android, the thing is that I want to fill a grid (like the DBGrid of desktop applications). With which component could I do it? I tried a TGrid but it doesn't have a Datasource or anything. Thank you
I have Delphi 10.3 and I want to develop for Android, the thing is that I want to fill a grid (like the DBGrid of desktop applications). With which component could I do it? I tried a TGrid but it doesn't have a Datasource or anything. Thank you
Grids in FMX (cross-platform) work with
livebindings
, not theTDataset
/ systemTDatasource
we're used to in VCL.Check out this docwiki link .
In the Embarcadero repository, you also have examples of how LiveBindings are used.
Example of LiveBindings with Delphi
In any case, I recommend you review the component
TListView
, which is more appropriate for displaying data on mobile phones and specially designed for them. ThoseTDBGids/TGrids
of the VCL are not usually used on mobile devices.You can try with
TStringGrid
it, it is much more advanced than in itVCL
, almost likeDBGrid
it and if you handle it through custom code making your ownclases
,metodos
andhelpers
without using itlivebinding
, the performance of the list is 10 times lighter, handling thousands of records without problems .