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
745
How to simulate Group Fields
posted

I am trying to unit test the group fields behavior of my XamDataGrid.

I tried this:

FieldSortDescription sortDescription = new FieldSortDescription();
sortDescription .FieldName = "FirstFieldName";
sortDescription.IsGroupBy = true;

grid.FieldLayouts[0].SortedFields.Clear();          
grid.FieldLayouts[0].SortedFields.Add(sortDescription);

Unfortunately, the event handler associated to the Grouped event of my grid is never called.

Does anybody have an idea of what is missing?

Thanks

Parents Reply Children