views:

74

answers:

1

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?

+1  A: 

The ListView class does not support design time binding. An alternative is presented in this project.

Hans Passant