Skip to content

Commit 1780bb0

Browse files
committed
change logic to remove column headers
1 parent 2f254f2 commit 1780bb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TableViewHeaderRow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private void RemoveHeaders(IEnumerable<TableViewColumn> columns)
181181
{
182182
foreach (var column in columns)
183183
{
184-
var header = _headersStackPanel.Children.OfType<TableViewColumnHeader>().FirstOrDefault(x => x == column.HeaderControl);
184+
var header = _headersStackPanel.Children.OfType<TableViewColumnHeader>().FirstOrDefault(x => x.Column == column);
185185
if (header is not null)
186186
{
187187
_headersStackPanel.Children.Remove(header);

0 commit comments

Comments
 (0)