Skip to content

Auto-refresh clears DataGrid sort order in Dashboard #659

@erikdarlingdata

Description

@erikdarlingdata

Which component(s) does this affect?

  • Dashboard
  • Lite

Problem Statement

When auto-refresh fires, setting ItemsSource on a DataGrid clears the current sort state. If the user sorted by Total CPU descending, the sort is lost after auto-refresh and the data reverts to the default order.

Proposed Solution

Save the current SortDescriptions before setting ItemsSource and restore them after. This should be applied to all DataGrid refresh paths in QueryPerformanceContent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions