Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
675
Rows in ActiveRowScrollRegion lost ListObject information after a data reload?
posted

Hi, 

I have a UltraWinGrid inside a tab. When we refresh data, I want to only process visible rows for display purposes. The first issue I had was that on initial load, ActiveRowScrollRegion was not prepared properly, it does not contain any rows in it. What I did was call UltraGrid.Update() after data is loaded. This seems to prepare the ActiveRowScrollRegion for me to work with. Now I run into another issue. This Grid is located in one of several tabs user can select from. When user selects a different tab and then comes back to this tab, we do a data reload. During this data reload, I noticed that although the ActiveRowScrollRegion seems to still maintain the same amount of rows, but right after I update the data source, all the ListObject and ListIndex for the rows in the region were reset. However, the row in UltraGrid.Rows seems to be bound correctly with proper ListObject. Is there a method to refresh the ActiveRowScrollRegion so it'll update the ListIndex and ListObject for its rows? 

One way I've found to trigger a refresh of ActiveRowScrollRegion is to either select a row or set active a row. But that requires me to keep track of current active row to persist through data loads, while originally that is managed automatically by the grid itself. It'd be much cleaner to still have Grid handle that.

Thanks

Parents Reply Children
No Data