I have an UltraGrid that I would like to automatically scroll so as to keep the currently active row visible. Is there a setting that will do this or must it be done in code?
The WinGrid has Fixed Rows that you could take advantage of.
They have an indicator button on the row selector that lets you pin the rows to either the top or bottom. If this is something you're looking for, you can activate this feature by clicking the "Start!" button on the grid to open the designer and then click on "Feature Picker". You'll see a Fixed Rows section on that screen with some options you can set.
I fail to see how the use of fixed rows aka pinned rows would address the problem which is that the use has pushed the down arrow key and the current row is below the visible portion of the list. The object is not to nail one particular row in place but to ensure that the currently active row is automatically scrolled into view.
haggard said: I fail to see how the use of fixed rows aka pinned rows would address the problem which is that the use has pushed the down arrow key and the current row is below the visible portion of the list. The object is not to nail one particular row in place but to ensure that the currently active row is automatically scrolled into view.
Keep in mind that your inital post was only two sentences. Development specs vary and not everyone reading what you type will know the details of what you're working on. All three suggestions you got do exactly what you asked, but their usage depends on what you're really trying to achieve.
My suggestion for the fixed rows was that a lot of users editing grids scroll around if they are trying to read reference data from another row, so instead of using what the other guys suggested I saw fixed rows as possible answer. That active row will always be in view, and they can scroll around as much as they like while they are editing the row, and even pin other rows if they want to look at those while typing. Makes sense right? Use whatever you think works best for you.