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
165
How to keep editing row focused in groupby mode when new records come in
posted

Hi,

We are using WinGrid in groupby mode. New records come in real time and if they are sorted/inserted on top of screen, the row user is editing on will be pushed down. User will lose the track. Right now UltraGrid.Rows.Move method is added to force new records to be inserted at the bottom of screen. This is not a good solution, however, because current sorting is broken and some important records are supposed to appear at top of grid. 

Is it possible that new records go to correct groups with the position of user editing row unchanged? Thanks

Xiaojun 

 

  • 469350
    Verified Answer
    Offline posted

     Hi Xiaojun, 

     It depends how the new rows are being added.Are they being added through the grid or to the data source? My guess is that whatever you are doing to add the rows is changing the position of the CurrencyManager and the grid is keeping it's active row in synch with this position. So one way around this would be to find a way to add the row that does not change the current position of the CurrencyManager. Another option would be to set SynchWithCurrencyManager on the grid to false.