Is it possible to bind a List to a ListView in WinForms?

Posted by mafutrct on Stack Overflow See other posts from Stack Overflow or by mafutrct
Published on 2010-05-09T20:12:55Z Indexed on 2010/05/09 20:18 UTC
Read the original article Hit count: 653

Filed under:
|
|

I'd like to bind a ListView to a List<string>. I'm using this code:

somelistview.DataBindings.Add ("Items", someclass, "SomeList");

I'm getting this exception: Cannot bind to property 'Items' because it is read-only.

I don't know how I should bind if the Items property is readonly?

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms