Skip to content

Fix #659: Preserve DataGrid sort order across auto-refresh#665

Merged
erikdarlingdata merged 1 commit into
devfrom
fix/659-preserve-sort-on-refresh
Mar 23, 2026
Merged

Fix #659: Preserve DataGrid sort order across auto-refresh#665
erikdarlingdata merged 1 commit into
devfrom
fix/659-preserve-sort-on-refresh

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

  • Save SortDescriptions before ItemsSource assignment and restore after, so user sort survives refresh cycles
  • Dashboard: New SetItemsSourcePreservingSort helper applied to all 7 QueryPerformanceContent DataGrids
  • Lite: Sort preservation added to DataGridFilterManager (covers both refresh and filter paths); SetInitialSort renamed to SetDefaultSortIfNone which no-ops when user sort is active

Test plan

  • Dashboard: Sort any QueryPerformance grid by a non-default column, wait for auto-refresh, verify sort persists
  • Lite: Sort any grid, wait for refresh cycle, verify sort persists
  • Verify default sort (e.g. AvgCpuTimeMs desc) still applies on first load
  • Verify column filter + sort combination works correctly

Closes #659

🤖 Generated with Claude Code

Save SortDescriptions before setting ItemsSource and restore them after,
so user-applied sort order survives refresh cycles in both Dashboard and Lite.

Dashboard: Replace SetInitialSort with SetItemsSourcePreservingSort across
all 7 QueryPerformanceContent DataGrids.

Lite: Add sort preservation to DataGridFilterManager (covers refresh and
filter paths), rename SetInitialSort to SetDefaultSortIfNone which skips
when user sort is already active.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata force-pushed the fix/659-preserve-sort-on-refresh branch from 49548af to b6c5efc Compare March 23, 2026 15:11
@erikdarlingdata erikdarlingdata merged commit 21696ee into dev Mar 23, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the fix/659-preserve-sort-on-refresh branch April 9, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant