Página 1 de 1

OndrawCell Ecent in browser

Publicado: Mié May 14, 2008 1:22 pm
por Gejza Horvath
I have a TDBBrowser the oDataSet property is assigned in the object inspector. The table
is shown fine. The TDbfDataset is opened by code, therefore the browser columns are not
available in object inspector. Now I would like to colorize some rows using
oColumn:OnDrawCell event. I manually assign this event for all the columns in
oBrowser:OnCreate event:
METHOD DBBrowse1Create( oSender ) CLASS TFormShow
LOCAL oColumn
FOR EACH oColumn IN oSender:aCols
oColumn:OnDrawCell := "RowColoring"
NEXT
RETURN Nil
The problem is, the oBrowser:aCols array in this moment is empty yet. Which event can I
use to assign the OndrawCell Event for every column in browser by code??
Regards
Gejza Horvath