How to prevent record from showing in TDBgrid?
Is there anyway to do the following (without using SQL select)?
I have a DBF table with a flag field. If a condition in the field is
true, then this record should _not_ display in a TDBgrid. The flag is
date sensitive, so if the date is changed then the record may be
displayed. I don't want to have to do an SQL select every time the
date is changed, because (1) it is too slow compared to the table which
is already open, and (2) I need the ability to have many indexes
rapidly selectable, and toggle the order state of the table.
I've tried not drawing the text by using OnDrawDataCell, but that just
leaves a blank line in my grid. I'd even be willing to settle for
drawing the data in a "grayed" color, though that wouldn't be my first
choice, but haven't had much luck changing the color of a single record
in the grid either.
Any suggestions much appreciated. Thanks.
--
David Dice
Technologies Facilitator, Carlton Comprehensive High School
dd...@paschools.pa.sk.ca
http://pasd2.paschools.pa.sk.ca