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
Post a Comment