XAML Studio is a developer tool that can be used to prototype ideas before adding them to the rest of the application in Visual Studio.
Take a moment to peruse the WPF DataGrid – Grouping documentation, where you can find about grouping with code examples.