I am having rows grouped into expanders based on category:empName in datagrid control of WPF application and we want to shift the expander on collapsed event to last of datagrid and vice versa i.e. shift the group to top in expanded event. Tried several ways but for no avail yet. Please suggest. We are working on VS2010 and .net 4.0.