RiggsHill.Windows.Forms.OLVHelper.ColumnBuilder Class Reference

Wrapper class for ColumnBuilder functionality. All methods are static. More...

List of all members.

Static Public Member Functions

static List< OLVColumn > BuildColumns< T > (ObjectListView list)
 Builds the column definitions, installing them into the supplied list, finally returning the list of columns for subsequent processing.


Detailed Description

Wrapper class for ColumnBuilder functionality. All methods are static.

Definition at line 197 of file ColumnBuilder.cs.


Member Function Documentation

static List<OLVColumn> RiggsHill.Windows.Forms.OLVHelper.ColumnBuilder.BuildColumns< T > ( ObjectListView  list  )  [static]

Builds the column definitions, installing them into the supplied list, finally returning the list of columns for subsequent processing.

The generic parameter is to be the class type from which properties will be extracted and examined for OLVColumnAttributes. Each property which is adorned with this attribute will have an OLVColumn created and populated.

The final list of OLVColumn is attached to the provided list (after clearing any existing columns) with list.RebuildColumns() being invoked as a final step.

This method may be invoked multiple times as it clears any existing columns from the list prior to constructing a new list. This is especially useful in the situation where list.SaveState()/list.RestoreState() is used to save/restore the column states and it's desirable to 'reset' the columns to their default states.

Template Parameters:
T 
Parameters:
list The list.
Returns:


The documentation for this class was generated from the following file:

Generated on Wed Jan 28 22:19:27 2009 for OLVHelper by  doxygen 1.5.8