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
155
New Row Sorted position with grouping
posted

I have a ultrawingrid binded to a datatable through bindingsource. If I add new rows to the underlying data-table its populating the grid appropriately. The problem is when I add a new row to the datatable & grid has sorting on 1 field & grouping also in the other field. The new row is not getting sorted within the group. 

If i remove the grouping, then I can place it properly by calling RefreshSortPosition() on the bottom row. But its not working with the grouping on (probably because of the grouping as it will not be last row).

Is there a way to sort the new row properly inside the group ?

 

 

 

 

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    coolpkb said:
    If i remove the grouping, then I can place it properly by calling RefreshSortPosition() on the bottom row. But its not working with the grouping on (probably because of the grouping as it will not be last row).

    You can't do this using RefreshSortPosition on the row, but you should be able to make it work by refreshing the sorting on the whole band.

    this.ultraGrid1.DisplayLayout.Bands[0].SortedColumns.RefreshSort(true);

    If that doesn't work, please let me know which version of the grid you are using. There was a bug in this method which was fixed a while back, so you might need to get the latest Service Release.

    How to get the latest service release - Infragistics Community

     

Children