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 |
- [DUG]: DB Grids Pat Sheehan
- [DUG]: DB Grids Robert Martin
- RE: [DUG]: DB Grids Alan Rose
- RE: [DUG]: DB Grids Guy Brown
- Re: [DUG]: DB Grids Robert Martin
- RE: [DUG]: DB Grids Alan Rose
- Re: [DUG]: DB Grids Robert Martin
- Re: [DUG]: DB Grids Nello Sestini
- Re: [DUG]: DB Grids NIRAV KAKU