ComponentOne CollectionView
C1.Win.CollectionView Assembly / C1.Win.CollectionView Namespace / ListViewEx Class / SetItemsSource Method
The list that will be populated.
The data source.
The name of the property where the text of the item comes from.
The name of the property containing the urls of the images that will be downloaded to the System.Windows.Forms.ListView.LargeImageList.

In This Topic
    SetItemsSource Method
    In This Topic
    Populates items and groups of System.Windows.Forms.ListView according to the source, supporting grouping, sorting and filtering.
    Syntax
    'Declaration
     
    Public Shared Function SetItemsSource( _
       ByVal list As System.Windows.Forms.ListView, _
       ByVal source As System.Collections.IEnumerable, _
       Optional ByVal textMemberPath As System.String, _
       Optional ByVal largeIconMemberPath As System.String _
    ) As ICollectionView(Of Object)
    public static ICollectionView<object> SetItemsSource( 
       System.Windows.Forms.ListView list,
       System.Collections.IEnumerable source,
       System.string textMemberPath,
       System.string largeIconMemberPath
    )

    Parameters

    list
    The list that will be populated.
    source
    The data source.
    textMemberPath
    The name of the property where the text of the item comes from.
    largeIconMemberPath
    The name of the property containing the urls of the images that will be downloaded to the System.Windows.Forms.ListView.LargeImageList.
    See Also