smartDBforms.NET API Reference

TemplateHolder Members

TemplateHolder overview

Public Instance Constructors

TemplateHolder Constructor Initializes a new instance of the TemplateHolder class.

Public Instance Properties

EditTemplate Gets or sets the custom content for the edit user interface. This template is rendered when new data should be entered by user or existing data should be edited.
LabelTemplate Gets or sets the custom content for the label user interface. If LabelTemplateID is specified then the label template of the referenced LabelHolder is used instead of this label template.
LabelTemplateID Gets or sets the ID of a LabelHolder control. When this this property is specified the referenced LabelHolder's LabelTemplate is used instead of the own LabelTemplate.
LayoutTemplateID Gets or sets the ID of a LayoutHolder control, which LayoutTemplate is used for creating the layout of the label part and content part.
PrimaryKeysReadonlyWhenUpdating Specifies if the primary key fields should be readonly in update mode. The ReadOnlyTemplate will be used instead of EditTemplate. The default value is true.
ReadOnlyTemplate Gets or sets the custom content for the edit user interface. This template is rendered when the data should be displayed to the user.
SupportsForeignKey (inherited from BaseTemplatesHolder) Gets or sets a value that indicates if this template is able to handle foreign-key data columns. If set to true then additional meta data properties are available during data bind. Of Course foreign-key properties are available only when the data column participates in a foreign-key relation.
UseReadonlyForReadonlyFields Specifies if the ReadOnlyTemplate template should always be used for readonly fields. If true the ReadOnlyTemplate will be used instead of EditTemplate. The default value is true.
UseReadonlyWhenInserting Specifies if when inserting new data the ReadOnlyTemplate should be used instead of EditTemplate. This for example is appropriate when this TemplateHolder is intended for editing autoincrement columns.
UseReadonlyWhenUpdating Specifies if when updating existing data the ReadOnlyTemplate should be used instead of EditTemplate. This for example is appropriate when this TemplateHolder is intended for editing primary key columns.

Public Instance Events

CustomCommand Occurs when the containing SmartDBControl sends custom command to this template holder.
ExtractingValues Occurs during data extraction. The hadler should extract the value from the template's controls and set it to Value.

Protected Instance Methods

OnCustomCommand Raises the CustomCommand event
OnExtractingValues protected Raises the ExtractingValues event

See Also

TemplateHolder Class | Adillis.SmartDBForms.Templates Namespace