In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

OndrawCell Ecent in browser

Xailer professional forum in English
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

OndrawCell Ecent in browser

Mensaje 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
Responder