Skip to content

Commit

Permalink
check if column is contained in the grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Dec 27, 2023
1 parent 06121f0 commit 4dd1ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Maui.DataGrid/DataGrid.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ private View GetHeaderViewForColumn(DataGridColumn column)
SortedColumnIndex = new(index, order);

column.SortingOrder = order;
}, () => column.SortingEnabled)
}, () => column.SortingEnabled && Columns.Contains(column))
}
}
};
Expand Down

0 comments on commit 4dd1ec9

Please sign in to comment.