FieldTemplateFactory.PreprocessMode(MetaColumn, DataBoundControlMode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Changes the mode of the data column.
public:
virtual System::Web::UI::WebControls::DataBoundControlMode PreprocessMode(System::Web::DynamicData::MetaColumn ^ column, System::Web::UI::WebControls::DataBoundControlMode mode);
public virtual System.Web.UI.WebControls.DataBoundControlMode PreprocessMode (System.Web.DynamicData.MetaColumn column, System.Web.UI.WebControls.DataBoundControlMode mode);
abstract member PreprocessMode : System.Web.DynamicData.MetaColumn * System.Web.UI.WebControls.DataBoundControlMode -> System.Web.UI.WebControls.DataBoundControlMode
override this.PreprocessMode : System.Web.DynamicData.MetaColumn * System.Web.UI.WebControls.DataBoundControlMode -> System.Web.UI.WebControls.DataBoundControlMode
Public Overridable Function PreprocessMode (column As MetaColumn, mode As DataBoundControlMode) As DataBoundControlMode
Parameters
- column
- MetaColumn
The column for which the field template is needed.
- mode
- DataBoundControlMode
The mode (Read Only, Edit, or Insert) to change to.
Returns
The mode that a column renders.
Remarks
Dynamic Data renders data in Read Only, Insert, or Edits modes. This method controls which mode is rendered in the column. For example, an Edit mode request changes to Read Only if the column is a primary key column. Columns that are automatically generated and foreign keys that are part of the primary key cannot be edited.
Applies to
.NET