Skip to content

Commit d77fd79

Browse files
authored
Enable highlighting of a selected table row in Winforms (#3293)
Ensures that a Winforms table still renders the selected row when it doesn't have focus.
1 parent 57fa8ba commit d77fd79

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

changes/3269.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Enable persisted highlighting of a selected table row in Winforms.

winforms/src/toga_winforms/widgets/table.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def create(self):
5252
self.native.VirtualMode = True
5353
self.native.Columns.AddRange(dataColumn)
5454
self.native.SmallImageList = WinForms.ImageList()
55+
self.native.HideSelection = False
5556

5657
self.native.ItemSelectionChanged += WeakrefCallable(
5758
self.winforms_item_selection_changed

0 commit comments

Comments
 (0)