DataCollection | ComponentOne
C1.Win.DataCollection Assembly / C1.Win.DataCollection 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 (ListViewEx)
    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 ListView, _
       ByVal source As IEnumerable, _
       Optional ByVal textMemberPath As String, _
       Optional ByVal largeIconMemberPath As String _
    ) As IDataCollection(Of Object)
    public static IDataCollection<object> SetItemsSource( 
       ListView list,
       IEnumerable source,
       string textMemberPath,
       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