Board index » delphi » DBGrid and THeaderControl

DBGrid and THeaderControl

I am working on an Explorer/Browser style application, and our head
programmer wishes more control over grid/header experience.  To this end
he wants to combine a DBGrid with no lines and header with a
THeaderControl containing scaled and appropriate headers for each
column.  Easy enough, but the database's data goes beyond the borders of
the DBGrid - they can be reached by scroll, but needless to say, the
THeaderControl doesn't move.

I am seeking to trap the scroll event - are there any suggestions, or
controls I can extract and monitor, etc.?

--
BADGER
"Any sufficiently advanced technology IS Magic"
------------------------------------------------------------------
Badger's Gate: http://www.infinet.com/~badger  
Boldly stating a working knowledge of HTML since 1995

MEMBER OF:
Association of Internet Professionals: http://www.association.org/
------------------------------------------------------------------

 

Re:DBGrid and THeaderControl


Hi there,

you can try the TopLeftChanged event in the TDBGrid. You will need to
rebuild the header though, as they can't scroll...

good luck!

--
Martijn Tonies

<- remove some characters from my email adress to reply ->
SomeCharacters.Sea...@dds.nl
http://surf.to/seal97
(Check the Delphi components page)

<none of the text written above has got anything to do with Euro Partners
Informatici BV>

System Development
Euro Partners Informatici BV
http://www.euro-partners.nl

Steven Savage heeft geschreven in bericht ...

Quote
>I am working on an Explorer/Browser style application, and our head
>programmer wishes more control over grid/header experience.  To this end
>he wants to combine a DBGrid with no lines and header with a
>THeaderControl containing scaled and appropriate headers for each
>column.  Easy enough, but the database's data goes beyond the borders of
>the DBGrid - they can be reached by scroll, but needless to say, the
>THeaderControl doesn't move.

>I am seeking to trap the scroll event - are there any suggestions, or
>controls I can extract and monitor, etc.?

>--
>BADGER
>"Any sufficiently advanced technology IS Magic"
>------------------------------------------------------------------
>Badger's Gate: http://www.infinet.com/~badger
>Boldly stating a working knowledge of HTML since 1995

>MEMBER OF:
>Association of Internet Professionals: http://www.association.org/
>------------------------------------------------------------------

Other Threads