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

css - Text drops down with smaller window -

php - Boolean search on database with 5 million rows, very slow -

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