Professional UI Solutions
Site Map   /  Register


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 Tech Support » EnsureVisibleRow in grid problem Collapse All
Subject Author Date
Offer Har Dec 30, 2009 - 3:44 PM

Dear Support,

We have a grid in a resizable dialog. The grid have many lines. There is an Add button, and when pressed, we add a row to the grid, and we want to make sure its visible, so we call EnsureVisibleRow after we add the row.

The problem is that if the dialog’s height is not exactly in multiples of grid rows height, the last line , which we should be fully is cut in the middle, so it’s impossible to see it, and edit it.

Please fix, or explain how to solve this problem.



Technical Support Jan 3, 2010 - 9:20 AM

If you invoke the OnSwUpdateScrollBars() method after adding a new grid row, then the EnsureVisibleRow() method should make it completely visible.