You are not logged in.
Pages: 1
I'm trying to get multicoloured per row font and background colours with a TSQLTableToGrid.
To do this I'm using two dynamic arrays of TColor which are initialised immediately after the TSQLTable is created based on an enumerated field. When onBackground is called this array is used to fillrect the background colour and set the font colour. This works but fails when a TSQLTableToGrid drawgrid gets sorted by a click on the header. To solve this I added an onAfterSort TNotifyEvent called at the end of TSQLTableToGrid.SortForce routine. This event then reinitialised the colour arrays.
Does this seem a practical way to do it? If so I'll add a feature request for an onAfterSort event.
Offline
Thanks for implementing the onSort event. It all seems to work fine
Offline
Pages: 1