c# - ObjectListView does not display -


i trying use objectlistview, fail on supposed simple. code:

list<book> books = new list<book>(); book book = new book(); book.name = "book 1"; book.author = "author 1"; books.add(book); book = new book(); book.name = "book 2"; book.author = "author 2"; books.add(book); this.objectlistview1.setobjects(books); 

it seems simple, compiles ok, nothing displayed!


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -