You are not logged in.
Pages: 1
hi there,
i have a ttimelog property in a tsqlrecordclass where i would like to store only the time.
and i wouold like to show in the grid (with fillstringgrid) only the time.
i dont use SQLite3i18n.
i dont understand how do this.
thanks,
Emanuele.
Offline
If you use TSQLTableToGrid, set the TSQLTableToGrid.OnValueText event handler to a custom handler.
So for the TTimeLog column, you can return only the time.
/// kind of event used to change some text on the fly for grid display
// - expect generic string Text, i.e. UnicodeString for Delphi 2009/2010,
// ready to be used with the VCL for all Delphi compiler versions
// - if the cell at FiieldIndex/RowIndex is to have a custom content,
// shall set the Text variable content and return TRUE
// - if returns FALSE, the default content will be displayed
TValueTextEvent = function(Sender: TSQLTable; FieldIndex, RowIndex: Integer; var Text: string): boolean of object;
If you do not use TSQLTableToGrid, you'll need to search in the grid display, how to customize a row content.
Offline
Pages: 1