How to get SfListView list data

How to get SfListView list data back from the control. I populate the control with List. Now once the user picks through the check boxes item how to read them back from the control

1 Reply

AA Arulraj A Syncfusion Team September 18, 2018 10:24 AM UTC

 
Thanks for using Syncfusion product. 
 
To read the data when click on the checkbox, you could use the ItemData in ItemChecking event. Please refer the following code example, 
 
Code example 
this.sfListView1.ItemChecking += SfListView1_ItemChecking; 
private void SfListView1_ItemChecking(object sender, Syncfusion.WinForms.ListView.Events.ItemCheckingEventArgs e) 
{ 
    var info = e.ItemData as OrderInfo; 
    if (info != null) 
    { 
        string value = info.ProductName; 
    } 
} 
 
Please refer the following UG link to know about this event, 
 
Please let us know if you have any further queries. 
 
Regards, 
Arulraj A 


Loader.
Up arrow icon