Redigera

Dela via


MetaTable.GetScaffoldColumns(DataBoundControlMode, ContainerType) Method

Definition

Returns a list of columns to display by using scaffolding.

public:
 virtual System::Collections::Generic::IEnumerable<System::Web::DynamicData::MetaColumn ^> ^ GetScaffoldColumns(System::Web::UI::WebControls::DataBoundControlMode mode, System::Web::DynamicData::ContainerType containerType);
public virtual System.Collections.Generic.IEnumerable<System.Web.DynamicData.MetaColumn> GetScaffoldColumns (System.Web.UI.WebControls.DataBoundControlMode mode, System.Web.DynamicData.ContainerType containerType);
abstract member GetScaffoldColumns : System.Web.UI.WebControls.DataBoundControlMode * System.Web.DynamicData.ContainerType -> seq<System.Web.DynamicData.MetaColumn>
override this.GetScaffoldColumns : System.Web.UI.WebControls.DataBoundControlMode * System.Web.DynamicData.ContainerType -> seq<System.Web.DynamicData.MetaColumn>
Public Overridable Function GetScaffoldColumns (mode As DataBoundControlMode, containerType As ContainerType) As IEnumerable(Of MetaColumn)

Parameters

mode
DataBoundControlMode

The data-bound control mode.

containerType
ContainerType

A value that indicates whether the table is displayed as an individual entity or as part of a list of entities.

Returns

A list of columns to display by using scaffolding.

Remarks

This method returns all columns whose ScaffoldColumnAttribute property is set to true except the following:

  • Long string columns, which are columns whose IsLongString property is set to true and whose containerType parameter is true.

  • Child columns whose DataBoundControlMode value is set to Insert.

Applies to