Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Issue:

The `VisualListViewItem` text draws in the first `VisualListViewSubItem` text position also when using the designer.

----------
Image:

[Design](https://i.stack.imgur.com/st9z1.jpg)

[Debug](https://i.stack.imgur.com/gBHka.jpg)

----------

Steps to reproduce:

 1. Add `VisuaListViewEx` to your `Form`.
 2. Add 2 `VisualListViewColumn`'s to the `VisuaListViewEx`.
 3. Add `VisualListViewItem`with text using the `Items` property using the `Designer`.
 4. Add a `VisualListViewSubItem` with text to the `SubItems` property in the `VisualListViewItem`.

----------

Source:

[VisualListView](https://github.com/DarkByte7/VisualPlus/blob/master/VisualPlus/Toolkit/Controls/DataManagement/VisualListViewEx.cs)

[VisualListViewItem](https://github.com/DarkByte7/VisualPlus/blob/master/VisualPlus/Toolkit/Child/VisualListViewItem.cs)

[VisualListViewSubItem](https://github.com/DarkByte7/VisualPlus/blob/master/VisualPlus/Toolkit/Child/VisualListViewSubItem.cs)

[VisualListViewItemCollection](https://github.com/DarkByte7/VisualPlus/blob/master/VisualPlus/Collections/CollectionsBase/VisualListViewItemCollection.cs)

[VisualListViewSubItemCollection](https://github.com/DarkByte7/VisualPlus/blob/master/VisualPlus/Collections/CollectionsBase/VisualListViewSubItemCollection.cs)


What I have tried:

When adding items and subitems dynamically through code it all works as intended. The problem seems to arise when I use the designer it starts doing this after the first debug. Closing the Design Window Tab and reopening it will update it. The SubItem then gets drawn in the next column if one exists to display it. When you open the Items properties again you will notice it created an extra one.
Posted
Updated 9-Jul-18 10:39am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900