Hi all,

I just discovered that the event is not triggered when you have added fields
in the Tdbgrid.

Is that normal?
Is there a way around this?

TIA
John

>-----Original Message-----
>From: John [mailto:[EMAIL PROTECTED]
>
>I have this application with a Tdbgrid hooked to an OnDrawDataCell event. I
>have used this before so in principle not a problem.
>
>However, with this application it does not seem to respond on this
>OnDrawDataCell event. When I put something simple in the event like
>showMessage('test') it seems never been called (see code below).
>
>procedure TForm1.dbgridClientsDrawDataCell(Sender: TObject; const Rect:
>TRect; Field: TField; State: TGridDrawState);
>begin
>  ShowMessage('Test');
>end;
>
>The Tdbgrid object's event is obviously registered in the component's event
>list.
>
>When I create a little application with just this Tdbgrid object
>and a table
>and datasource it works OK. However, when I copy these objects to THE
>application then the event is not called any more.
>
>I'm running D7.
>
>_______________________________________________
>Delphi mailing list
>[EMAIL PROTECTED]
>http://ns3.123.co.nz/mailman/listinfo/delphi
>

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to