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
255
Adding new row to data source is not creating new group by row
posted

Hi,

I have a grid grouped by a particular column with a filter on one of the other columns.

A row that is currently filtered out of the grid is updated in the data source and initialize row is called which then calls RefreshFilters on the row (such that the row now satisfies the filter). However, the row does not appear in the grid. It seems that this is because the row does not satisfy one of the existing group by rows and even after calling RefreshSortPosition on the row the appropriate group by row is not generated and displayed.

However, if I call e.Row.Band.SortedColumns.RefreshSort(true) then the row and the associated group by row appears. This, however, is a bit of a performance hit as potentially many rows can be updated whilst the application is up (which would cause them to be added/removed depending on whether they pass the grid filter). Are there any alternative solutions to this?

Note that the row does appear with no problem if the group by row already exists.

thanks

Alan

Parents
No Data
Reply Children