Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
500
ListView with entities
posted

Hi,

I want to use the ListView like a CheckedListBox (Basic Winforms Controls). I want to save objects (i.e "Person") in the values and display the  Name field/property on an item.

Example Code:

I need something like:

InfraListView.Items.Add( person1, "John")
InfraListView.Items.Add( person2, "Karl")
InfraListView.Items.Add( person3, "Charlie")

And when the user checks some item, I need to retrieve the object (in this case, a person object).

How can I do that? I knew that the ListView does not support binding.

Best regards,

Diego 

 

 

 

 

 

 

Parents Reply Children
No Data