You are not logged in.
hi ab,
i use sqlite3ui.FillStringGrid to fill a TSQLTableJSON in a TAdvGrid.
i would like to use MarkAllowed capability that is present in TSQLTableToGrid.
how can i have this behavior rapidly?
thanks,
Emanuele
Offline
The "marking" feature is deeply part of TSQLTableToGrid process.
It is used in the core this wrapper class, to properly handle search, sorting and default UI actions of the mORMot framework.
It has been profiled for speed and memory use, with huge amount of data.
But you can not easily extract it from TSQLTableToGrid.
I suspect you are using a TAdvGrid, which override and breaks the default TDrawGrid behavior.
So you won't be able to use TSQLTableToGrid with a TAdvGrid directly.
I guess TAdvGrid won't allow you to have the features needed by the "marking" structures.
So you probably will have to stick with the TAdvGrid features and methods.
If you want the TSQLTableToGrid features, you'll have to use it, not TAdvGrid.
"Marking" is definitively part of the UI, not part of the mORMot core. It won't be integrated into TSQLTable of SQLite3Commons.
Offline
i understand...thanks for the answer!
Offline