Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Selecting a cell in gridctrl
Re: Selecting a cell in gridctrl [message #12449 is a reply to message #12447] Thu, 01 November 2007 18:47 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Quote:

The next problem I've run into is I can't seem to force GridCtrl to scroll if the selected cell is off screen. I tried to used the ScrollView function, but it appears to have no effect. I tried all the available variants of ScrollView with no change. Is there something else I am missing?

You can use GotTo(int row) method to make the given row visible. There is no method to do the same in horizontal direction however so I will overload GotTo to make it possible.
You can also make public sbx and sby members and use their methods to force scrolling (SetPos). Of course it's not a proper way, but it can temorarly solve your problems.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl crash when cancel insert/update
Next Topic: Row numbering inconsistency
Goto Forum:
  


Current Time: Wed Jun 25 14:26:55 CEST 2025

Total time taken to generate the page: 0.03674 seconds