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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -