C# 클래스 Rock.Web.UI.Controls.AttributeField

If DataItem implements IHasAttributes, this gets the Attribute value for the dataitem using DataField as the Attribute.Key. Otherwise, it will look in the grid.ObjectList[key] using the DataField as the lookup key. Example: If using a Person Grid, the value of the Attribute "FavoriteColor" would be shown in the grid by specifying this grid column <Rock:AttributeField DataField="FavoriteColor" HeaderText="Person's Favorite Color" />
상속: RockBoundField
파일 보기 프로젝트 열기: NewSpring/Rock 1 사용 예제들

공개 메소드들

메소드 설명
GetExportValue ( System.Web.UI.WebControls.GridViewRow row ) : object

Gets the value that should be exported to Excel

보호된 메소드들

메소드 설명
FormatDataValue ( object dataValue, bool encode ) : string

Formats the specified field value for a cell in the T:System.Web.UI.WebControls.BoundField object.

GetValue ( System controlContainer ) : object

Retrieves the value of the field bound to the T:System.Web.UI.WebControls.BoundField object.

비공개 메소드들

메소드 설명
GetAttributeObject ( System.Web.UI.WebControls.GridViewRow row ) : IHasAttributes

Gets the attribute object.

GetRowValue ( System.Web.UI.WebControls.GridViewRow row, bool condensed, bool formatAsHtml ) : object

Gets the row value.

메소드 상세

FormatDataValue() 보호된 메소드

Formats the specified field value for a cell in the T:System.Web.UI.WebControls.BoundField object.
protected FormatDataValue ( object dataValue, bool encode ) : string
dataValue object The field value to format.
encode bool true to encode the value; otherwise, false.
리턴 string

GetExportValue() 공개 메소드

Gets the value that should be exported to Excel
public GetExportValue ( System.Web.UI.WebControls.GridViewRow row ) : object
row System.Web.UI.WebControls.GridViewRow The row.
리턴 object

GetValue() 보호된 메소드

Retrieves the value of the field bound to the T:System.Web.UI.WebControls.BoundField object.
protected GetValue ( System controlContainer ) : object
controlContainer System The container for the field value.
리턴 object