Hi,
I have another question related to UltraGrid.
When I am adding a new record to the bindinglist bound to the grid, its adds it to the grid and also all the groupings are maintained. But, the sorting is not maintained. What I mean by this is, lets say, I have my grid sorted based on the Date field in descending order. So, if a new record contains the latest timestamp, then it should be added at the top. right now, it is adding it to the bottom. Also, if the date is in between the two boundary conditions, it should be added in between maintaining the sort and group order.
The order can be anything, e.g based on the NAME, DATE, PRICE, etc.
Can you please advise me on this. Help is really appreciated.
Thanks
This question is answered here: Refreshing groups - Infragistics Community
Thanks Mike for your reply.
I am not able to click on the link. can you please repost the same?
Thanks again!
I happened to search for the same in the community and I got the post.
the problem here is, if I use RefreshSortPosition on the row, it is working properly if I have not grouped the records. But if I group the records, it does not sort automatically. And if I call RefreshSort on the sorted columns, it does sort the rows, but all the groups are collapsed. Whatever thr groups which were expanded become collapsed.
My UltraGrid is just used to add the new rows, I am not updating any rows. Moreover, the reason I dont need the grid to be refreshed on every insert operation is, because, there will be more than 10 users using this application and everyone can add the records. So, this might create chaos for someone just reading the records from the grid.
I hope my problem is clear to you. Please let me know if you need any additional information regarding this.
sagarbora said:if I use RefreshSortPosition on the row, it is working properly if I have not grouped the records. But if I group the records, it does not sort automatically
That does not sounds right to me. Whether the rows are grouped or not, RefreshSortPosition should sort the row into it's proper place (assuming all of the other rows are already sorted) and group (if there are groups).
If that's not working, you should Submit an incident to Infragistics Developer Support and report this as a bug.