#1 2012-05-21 10:27:56

lele9
Member
Registered: 2011-10-28
Posts: 170

TSQLTableJSON, sqlite3ui.FillStringGrid, and MarkAllowed

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

#2 2012-05-21 11:55:22

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: TSQLTableJSON, sqlite3ui.FillStringGrid, and MarkAllowed

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.
sad

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

#3 2012-05-21 14:11:20

lele9
Member
Registered: 2011-10-28
Posts: 170

Re: TSQLTableJSON, sqlite3ui.FillStringGrid, and MarkAllowed

i understand...thanks for the answer!

Offline

Board footer

Powered by FluxBB