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
460
Reflect changes in datasource when grid is grouped by a column
posted

Hi,

I have a grid which I grouped by a column. After displaying the grid with GroupedByRows for every distinct value in that column and the number of rows for that value, a change occur in the datasource, i.e. in the datatable that holds the data for the grid. The change is for the grouping column and means that the changed row should move from one existing group to an other. Unfortunetly, the grid does not display that change, nothing happens with the edited row.

Is this behavior of the grid correct, i.e. there is no intention to get the grid to reflect changes in datasource regarding the data that the grouping is built on or I am missing something?

Thankfull for answers and best regards

Parents
No Data
Reply
  • 53790
    posted

    Hi,

    If I understand your scenario, maybe you are looking for RefreshSort() method.

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

    Please take a look at the attached video for more details and let me know if you have any questions, or if you think that I misunderstood your scenario.

    Regards

Children