Se o DEFAULTDRAWING do dbgrid estiver TRUE ele não vai executar o onDrawDataCell, passe ele para FALSE. do help do delphi... "Set DefaultDrawing to True to allow the data-aware grid to draw the data in the cells of the grid automatically. Set DefaultDrawing to False to turn off the default drawing when providing customized painting in an OnDrawColumnCell event handler or an OnDrawDataCell event handler. "
abraços... Luiz Escobar - Analista/Desenvolvedor: WEB - HTML/JavaScript/PHP/MySQL WINDOWS - Delphi/ASSEMBLER/MySQL/xBase SERVIDORES - CNA IntraNetWare4.11, LINUX-(RedHat9/Suse10.2), Windows 2K/XP ----- Original Message ----- From: Evaldo To: delphi-br@yahoogrupos.com.br Sent: Friday, September 21, 2007 11:26 AM Subject: [delphi-br] onDrawDataCell Estou dando manutenção em um sistema que possui um DBgrid com o evento "onDrawDataCell", que nunca é disparado. Pergunto: Qual a utilidade do onDrawDataCell do DBGrid? e quando que ele é disparado? pesquisei no help, mas está meio confuso, ele diz para não usar. encontrei o seguinte: "Do not write an OnDrawDataCell event handler. OnDrawDataCell is obsolete and included for backward compatibility. Instead, write an OnDrawColumnCell event handler." Flickr agora em português. Você clica, todo mundo vê. http://www.flickr.com.br/ [As partes desta mensagem que não continham texto foram removidas] [As partes desta mensagem que não continham texto foram removidas]