Skip to content

Commit 1cd97eb

Browse files
committed
Add SortMemberPath to TableViewColumn for custom sorting
1 parent 599a7ce commit 1cd97eb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Columns/TableViewColumn.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ private static void OnHeaderStyleChanged(DependencyObject d, DependencyPropertyC
457457

458458
/// <summary>
459459
/// Gets or sets the member path to use for sorting instead of the default binding path.
460-
/// Holds the name of the member to use for sorting, if not using the default.
461460
/// </summary>
462461
public string? SortMemberPath
463462
{

src/ItemsSource/ColumnSortDescription.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public ColumnSortDescription(TableViewColumn column,
2121

2222
public override object? GetPropertyValue(object? item)
2323
{
24-
// If a property name SortMemberPath was provided
24+
// Use reflection-based property access when SortMemberPath is explicitly provided; otherwise, fall back to column cell content.
2525
if (!string.IsNullOrEmpty(PropertyName))
2626
{
2727
return base.GetPropertyValue(item);

0 commit comments

Comments
 (0)