In UltraWinGrid, there are methods BeginUpdate() and EndUpdate() to enable/disable grid refresh? Are there methods like that in xamDataGrid.
We have a workflow that has a button on a cell, upon clicking on the button, the row was selected and an action was performed, after that refresh grid to reflect the changes and reselected the actioned row. User found out that the grid is flickered after refresh the grid and locate the actioned row, especially when need to scroll to find the row. The grid is also slow to refresh, it takes 1 sec to refresh. We want to know if there is a way to control when to refresh the grid.
Thanks,Crystal.
Hello Crystal,
This event is fired every time a Record comes in view or goes out of view and you are not able to change this behavior.
We are working creating a sample project. I have another question, we handled RecordsInViewChanged event for the grid, it seems the event handler got called multiple times during refresh, we'd like to know how to avoid that.
Thanks,
Crystal.
Could you please send me an isolated sample project, where this behavior is reproduced, so I could investigate this further for you? Also it will be great if you tell me the steps I need to follow in order to reproduce this.
Looking forward for your reply.
Thank you for your quick response. I looked into UpdateMode property, it doesn't see to apply to our case. We don't do edit in the grid. After there was an action performance on a cell, the whole grid needs to be refreshed, because row layout changed. We need to find a way to only display the grid when it scrolled to a desired row. Currently, after grid refresh, we set selected row and call BringRecordIntoView to make the row visible. Client said that the grid flickered and was jumpy when it scrolls to a selected row.
Thank you for your post. I have been looking into it and I can suggest you see this link from our online documentation:
http://help.infragistics.com/Help/Doc/WPF/2014.1/CLR4.0/html/InfragisticsWPF4.DataPresenter.v14.1~Infragistics.Windows.DataPresenter.UpdateMode.html
where it is explained what are the possibilities for updating the XamDataGrid. Please let me know if you have further questions on this matter.