@@ -44,7 +44,7 @@ public partial class QueryStoreGridControl : UserControl
4444 private bool _waitStatsSupported ; // false until version + capture mode confirmed
4545 private bool _waitStatsEnabled = true ;
4646 private bool _waitPercentMode ;
47- private QueryStoreGroupBy _groupByMode = QueryStoreGroupBy . None ;
47+ private QueryStoreGroupBy _groupByMode = QueryStoreGroupBy . QueryHash ;
4848 private List < QueryStoreRow > _groupedRootRows = new ( ) ; // top-level rows for grouped mode
4949
5050 public event EventHandler < List < QueryStorePlan > > ? PlansSelected ;
@@ -89,6 +89,7 @@ public QueryStoreGridControl(ServerConnection serverConnection, ICredentialServi
8989 // Auto-fetch with default settings on connect
9090 Avalonia . Threading . Dispatcher . UIThread . Post ( ( ) =>
9191 {
92+ ReorderColumnsForGroupBy ( ) ;
9293 Fetch_Click ( null , new RoutedEventArgs ( ) ) ;
9394 _initialOrderByLoaded = true ;
9495 } , Avalonia . Threading . DispatcherPriority . Loaded ) ;
@@ -311,12 +312,7 @@ private async System.Threading.Tasks.Task FetchGroupedPlansAsync(
311312 LoadButton . IsEnabled = true ;
312313 SelectToggleButton . Content = "Select All" ;
313314
314- // Auto-expand the first root row to the deepest level
315- if ( rootRows . Count > 0 )
316- {
317- var first = rootRows [ 0 ] ;
318- ExpandRowRecursive ( first ) ;
319- }
315+
320316
321317 UpdateStatusText ( ) ;
322318 UpdateBarRatios ( ) ;
0 commit comments