C# 클래스 ZForge.Controls.XPTable.Models.DataSourceColumnBinder

Binder that creates the appropriate type of Column for a given column in a DataSource.
파일 보기 프로젝트 열기: zhuangyy/Motion 1 사용 예제들

공개 메소드들

메소드 설명
DataSourceColumnBinder ( ) : System

Creates a DataSourceColumnBinder with default values.

GetCell ( Column column, object val ) : Cell

Returns the cell to add to a row for the given value, depending on the type of column it will be shown in. If the column is a TextColumn then just the Text property is set. For all other column types just the Data value is set.

GetColumn ( PropertyDescriptor prop, int index ) : Column

Returns the type of column that is appropriate for the given property of the data source. Numbers, DateTime, Color and Boolean columns are mapped to NumberColumn, DateTimeColumn, ColorColumn and CheckBoxColumn respectively. The default is just a TextColumn.

메소드 상세

DataSourceColumnBinder() 공개 메소드

Creates a DataSourceColumnBinder with default values.
public DataSourceColumnBinder ( ) : System
리턴 System

GetCell() 공개 메소드

Returns the cell to add to a row for the given value, depending on the type of column it will be shown in. If the column is a TextColumn then just the Text property is set. For all other column types just the Data value is set.
public GetCell ( Column column, object val ) : Cell
column Column
val object
리턴 Cell

GetColumn() 공개 메소드

Returns the type of column that is appropriate for the given property of the data source. Numbers, DateTime, Color and Boolean columns are mapped to NumberColumn, DateTimeColumn, ColorColumn and CheckBoxColumn respectively. The default is just a TextColumn.
public GetColumn ( PropertyDescriptor prop, int index ) : Column
prop System.ComponentModel.PropertyDescriptor
index int
리턴 Column