Colorising Grid based on a condition
From: Ian Robinson (ian_at_forest2000.co.uk)
Date: 10/30/03
- Next message: Maarten Wiltink: "Re: Array assignment"
- Previous message: Ian Robinson: "dbEdit box will not Autoselect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 21:04:39 +0000
Hi,
I'm trying to display the text of certain rows according to a condition
in the DrawColumnCell event of a grid as follows...
if tblOrders.FieldByName('Date ordered').isnull = false then
dbgOrders.Canvas.Font.color := clRed;
dbgOrders.DefaultDrawColumnCell(Rect,DataCol,Column,State);
This colourises the text as I want but the grid does not behave as it
did previously. It persists in going to the first of last record display
rather than the current record of the dataset
Any ideas ?
--
Best regards
Ian Robinson FOREST SOFTWARE
+44(0)1594 564457 (Office)
+44(0)7718 806 006 (UK Mobile)
+34 653 209 592 (Overseas Mobile)
+44(0)1594 564038 (Out of hours support)
- Next message: Maarten Wiltink: "Re: Array assignment"
- Previous message: Ian Robinson: "dbEdit box will not Autoselect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|