Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtGridWnd: Automatically scroll to selection Collapse All
Subject Author Date
Douglas Hoppes Mar 22, 2011 - 7:50 AM

Hi all,

Hopefully this is a simple question. I’m programmatically changing the row/column in a CExtGridWnd and I would like the grid control to automatically scroll to that row or column. Essentially making sure that the programmatically set row/column is visilble to the user.

How do I go about doing this?

Dougie

Technical Support Mar 22, 2011 - 1:10 PM

The following grid methods can be used for making visible particular cells by scrolling position adjustments:

CExtGridBaseWnd::EnsureVisibleColumn()
CExtGridBaseWnd::EnsureVisibleRow()
CExtGridBaseWnd::FocusSet()