Skip to content

Commit

Permalink
improve early-out
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Jan 24, 2024
1 parent 6a2f841 commit 2d5ae2b
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 @@ -1439,7 +1439,7 @@ private void InitHeaderView()
return;
}

if (Columns == null)
if (Columns == null || Columns.Count == 0)
{
_headerView.ColumnDefinitions.Clear();
return;
Expand Down

0 comments on commit 2d5ae2b

Please sign in to comment.