0

I am using the cxGrid component with a TcxGridTableView. I need to get the offset distance of the scroll bar. I wonder there are scroll events that I can use to get this information?

I'm looking for how much pixels were scrolled because I want to display something like a rule of pixels from the left position of the grid above it, and i have to count the pixels "hidden", shifted by the scroll.

Thanks in advance.

diogo
  • 1
  • 1
  • 2

1 Answers1

0

I believe the grid has some sort of index property that specifies the rownumber of the top visible row in the grid. This property can be read and set. Is that what you are looking for?

Birger
  • 4,343
  • 21
  • 35
  • I guess not. I'm looking for how much pixels were scrolled because I want to display something like a rule of pixels from the left position of the grid above it, and i have to count the pixels "hidden" by the scroll. Sorry if I gave a bad description, but english isn't my native language. Thanks. – diogo Aug 27 '11 at 20:44
  • @diogo: On StackOverflow you can edit your question to provide these additional details. – Marjan Venema Aug 28 '11 at 07:08
  • Ok, I thought you might be looking for the record-position. Maybe if you multiply the index by the row height you'll get what yo need? – Birger Aug 28 '11 at 16:59