Skip to content

Commit

Permalink
rename property
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Jan 23, 2024
1 parent 3be7574 commit bea8ce1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Maui.DataGrid/DataGrid.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1438,11 +1438,11 @@ private void InitHeaderView()
continue;
}

col.HeaderView ??= CreateHeaderCell(col);
col.HeaderCell ??= CreateHeaderCell(col);

col.HeaderView.UpdateBindings(this, HeaderBordersVisible);
col.HeaderCell.UpdateBindings(this, HeaderBordersVisible);

Grid.SetColumn(col.HeaderView, i);
Grid.SetColumn(col.HeaderCell, i);

if (_headerView.Children.TryGetItem(i, out var existingCell))
{
Expand All @@ -1453,12 +1453,12 @@ private void InitHeaderView()

if (cell.Column != col)
{
_headerView.Children[i] = col.HeaderView;
_headerView.Children[i] = col.HeaderCell;
}
}
else
{
_headerView.Children.Add(col.HeaderView);
_headerView.Children.Add(col.HeaderCell);
}

}
Expand Down
2 changes: 1 addition & 1 deletion Maui.DataGrid/DataGridColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ internal ColumnDefinition? ColumnDefinition
set => _columnDefinition = value;
}

internal DataGridCell? HeaderView { get; set; }
internal DataGridCell? HeaderCell { get; set; }

internal TextAlignment VerticalTextAlignment => _verticalTextAlignment ??= VerticalContentAlignment.ToTextAlignment();

Expand Down

0 comments on commit bea8ce1

Please sign in to comment.