Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DBGrid and TitleClick

14 views
Skip to first unread message

Mark

unread,
Jul 30, 2008, 8:31:44 AM7/30/08
to
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 ?


0 new messages