How to know if there is some data to be scrolled in Quantum Grid 5?

I'm working in a legacy project, in Delphi 7, which uses the Express Quantum Grid 5, from DevExpress.

My grid cannot show scroll bars, so I have an external navigator to control the scrolling.

I can scroll using the GridView.Site.ScrollContent(ADirection) method, but I don't know how to identify if there is some data to be scrolled in any one of the four directions (Up, Down, Left and Right).

I need to know this to be able to disable the navigation buttons when no navigation is needed.

Do anybody know any solution or workaround for this problem? I could not find any method in the grid or its parts that can give me this information.


I found a solution...

As we bought the source code of the component, we make some changes on it when necessary.

In this case, I found a protected method named CanScrollData(ADirection) in the controller used by the gridview. All I needed to do was to make this method public and then use it.

Boolean canScrollLeft := Grid.ActiveView.Controller.CanScrollData(dirLeft)

Need Your Help

Omnetpp model asimmetric channel

performance networking upload omnet++ asymmetric

I have to model a bittorrent network, so there are a number of node connected each other. Each node has a download speed, say 600KBps, and an upload speed, say 130KBps.

Update HTML, with PERL variable

javascript jquery html

I have a script in PERL that print a var (tag) that changes value every second. Actually, I refresh the entire page every 2 seconds, but how update only the perl-tags? The HTML run over a webServer

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.