One answer to my own question is to use SelectedFields
 
i.e.
 
if DBGrid1.SelectedField = Dataset.Fields[3] then
Acal.visible:=True else
Bcal.Visible:=True;
 
is there a better way?
 
Patrick Sheehan
( P+A Computing )
Patrick Anthony Associates Ltd
166 Kitchener Rd, PO Box 31-831 Milford
Auckland, New Zealand
Ph: 64 9 486-5020       FX: 64 9 486-5010
Web: www.compnz.co.nz     Email: [EMAIL PROTECTED]
 
 
 
>How do you differentiate between columns in a grid ?
>for e.g. the following won't make Acal visible
>
>if Sender=DBGrid1.Columns[4] then
>Acal.visible:=True
>else
>Bcal.Visible:=True;
>
>Any help thanks

Reply via email to