Skip to content

FastObjectListView in LargeIcon view with groups #10

@rrirower

Description

@rrirower

I tried to convert a ListView in LargeIcon view to a FastObjectListView that uses groups. The code throws an exception while trying to define the groups:

"When the ListView is in virtual mode, you cannot enumerate through the ListView items collection using an enumerator or call GetEnumerator. Use the ListView items indexer instead and access an item by index value."

The exception occurs on this line in the code:

channellistView.Groups.Add(new ListViewGroup(category.name, HorizontalAlignment.Left));

I am adding the groups programmatically in the code. I set the flag 'ShowGroups' to true.

Is this possible? How can I add groups to a FastObjectListView in LargeIcon view? Is there a code sample or recipe?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions