dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.4k stars 980 forks source link

Group List not shown when multiple items are selected and editing ‘Group’ property in ListViewItem Collection Editor #4076

Open Lydia-Shi opened 4 years ago

Lydia-Shi commented 4 years ago

Problem description: Group List not shown when multiple items are selected and editing ‘Group’ property in ListViewItem Collection Editor

Verified

Expected behavior: Group list should be displayed.

Minimal repro:

  1. Create a Winforms core project
  2. Drag and drop a ListView control to Form designer, open its smart tag and click "Edit Groups"
  3. In ListViewGroup Collection Editor, click "Add" button to add two groups, then click Ok button
  4. Focus on ListView control again, open its smart tag and click "Edit items"
  5. In ListViewItem Collection Editor, click "Add" button to add two items
  6. Select these two items, click the drop-down button of Group property in the right table, observe the drop-down box
RussKie commented 3 years ago

The fix would likely involve changes to ListViewGroupConverter to handle the scenario where multiple ListViewItems are selected.