May 12, 2012
I have a fixed-size pane for displaying MSFlexGrid rows, and, when the number of rows exceeds the pane capacity, a vertical scroll bar is displayed. If the user scolls downward, and selects a lower row for action, I want the display to be restored (approximately) after the grid is reloaded.row selection is maintained explicitly by code: If the action is a change in row data, the successor row will be selected (by code); if the action is row deletion, the preceeding row will be selected (by code). Since the grid must be reloaded following the change, MSFlexGrid will present the first n rows by default. (The grid must be reloaded because the actions may have affected the presentation order.)How can I force a scrolling repositioning after a grid reload? In my imagination I see a sequence somewhat like make-non-visible, reload-grid, set-scroll-position, make-visible, set-new-row-selection. Is something like this easily done?
View 3 Replies