User login |
ObjectListViewObjectListView & Dynamic Columns,generic method,attributesObjectListView has got to be one of the slickest controls out there - simple, quick and powerful. But being the extremely lazy coder that I am, it wasn't easy enough. So here's a little helper which allows you to decorate a class' properties with an attribute which is used to build the column definitions for the ObjectListView. Define your properties, adorn with an attribute and hand a collection to the listView - the rest is pretty much magic. I won't explain more here, the documentation has examples: here. Follow the Class List to OLVColumnAttribute and scroll down to the examples. Download here.
|