Skip to content

Commit

Permalink
cell selection not working with only one column is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
w-ahmad committed Jul 6, 2024
1 parent fd59014 commit c27f5e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WinUI.TableView/TableView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public TableView()

CollectionView.Filter = Filter;
base.ItemsSource = CollectionView;
base.SelectionMode = ListViewSelectionMode.Extended;
base.SelectionMode = SelectionMode;
RegisterPropertyChangedCallback(ItemsControl.ItemsSourceProperty, OnBaseItemsSourceChanged);
RegisterPropertyChangedCallback(ListViewBase.SelectionModeProperty, OnBaseSelectionModeChanged);
Loaded += OnLoaded;
Expand Down Expand Up @@ -875,7 +875,7 @@ internal TableViewCell GetCellFromSlot(TableViewCellSlot slot)
{
if (start == -1)
{
start = Columns.VisibleColumns.IndexOf(column);
start = end = Columns.VisibleColumns.IndexOf(column);
}
else
{
Expand Down

0 comments on commit c27f5e3

Please sign in to comment.