Thread View: borland.public.delphi.vcl.components.using.general
1 messages
1 total messages
Started by Mark
Wed, 30 Jul 2008 12:31
DBGrid and TitleClick
Author: Mark
Date: Wed, 30 Jul 2008 12:31
Date: Wed, 30 Jul 2008 12:31
14 lines
1527 bytes
1527 bytes
I have a DBGrid with 5 columns. The first three are in view, the last two are not. So I have a horizontal scrollbar. I have an OnDBGridTitleClick event defined. I scroll to the right and have column 5 in view. I click on the Column Title of column 5. The horizontal scrollbar jumps back to the left so column 1 to 3 are in view and not column 5. The Column.Index value of the Column parameter of my event is 2 and thus pointing to column 3. How do I prevent the DBGrid jumping back to the first columns so I can get the correct Column.Index value ?
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads