...
To group by Gender, drag and drop the column in the grouping panel.
To add another level of grouping, just drag and drop another column header to the grouping panel. Drag and drop Year up in front of Gender to make it first level of the grouping hierarchy.
For more detailed information regarding Grouping, see: https://documentation.devexpress.com/#WindowsForms/CustomDocument114589