smartDBforms.NET API Reference

SmartDBControl Members

SmartDBControl overview

Public Instance Constructors

SmartDBControl Constructor Initializes a new instance of the SmartDBControl class.

Public Instance Properties

AdHocProperties (inherited from BaseSmartDBControl) Collection of named adhoc properties, used to pass custom information to the underlying template. The interpretation of the information is up to the template implementation.
AdHocProperty1 (inherited from BaseSmartDBControl) Used to pass custom information to the underlying template. The interpretation of the information is up to the template implementation.
AdHocProperty2 (inherited from BaseSmartDBControl) Used to pass custom information to the underlying template. The interpretation of the information is up to the template implementation.
AdHocProperty3 (inherited from BaseSmartDBControl) Used to pass custom information to the underlying template. The interpretation of the information is up to the template implementation.
ChildrenTabIndex (inherited from BaseSmartDBControl) The start tab index that is passed to the children at data bind time. This index is used as a base for their tab indexes. The the default value is 0. A value of 0 means the children will not have the default tab order, as determined by the browser Setting negative value disables tabbing for the child controls.
DataItem (inherited from BaseSmartDBControl) The DataItem that is used during data binding. This data item is used by the template's child controls.
Field (inherited from BaseSmartDBControl) The database field for which BaseSmartDBControl should generated user interface. Field should refer to an existing column in the databinding item.
ForceReadonlyInEdit (inherited from BaseSmartDBControl) Forces the read-only user interface template to be used in edit mode. The default value is false.
ForceReadonlyInInsert (inherited from BaseSmartDBControl) Forces the read-only user interface template to be used in insert mode. The default value is false.
ForceRequired (inherited from BaseSmartDBControl) Forces the user interface template to ignore the database column AllowDBNull setting(if null values are allowed) and to always require user input. The default value is false.
ParentContainer (inherited from BaseSmartDBControl) Returns the SmartDBView container of this control.
ShowLabel Specifies if the label user interface is displayed. By default ShowLabel is true. If you need to display the label by other means set ShowLabel to false. For displaying label at other place you can use SmartDBLabel or SmartDBLinkedLabel
TemplateID (inherited from BaseSmartDBControl) The id of the template to use for rendering and extracting. The default value is empty string, which means that the proper template is selected automatically.
ValidationGroup (inherited from BaseSmartDBControl) The validation group for the validators that are contained in the template.

Public Instance Methods

GetCurrentValues Extracts the current values from the underlying template. Returns dictionary where keys are the names of the corresponding database field.
SendCustomCommandToTemplate (inherited from BaseSmartDBControl) Sends the specified custom command to the current template. After SendCustomCommandToTemplate returns you can extract the out parameters from customCommand. The command causes the TemplateHolder of the current template to fire CustomCommand.

Public Instance Events

CustomEvent (inherited from BaseSmartDBControl) Allows the template developer to send custom events to the containing BaseSmartDBControl. When you handle this event you must determine your logic by inspecting the exact type of the Event property. One implementaion of this class is ValidateCustomEvent

Protected Instance Methods

OnCustomEvent (inherited from BaseSmartDBControl) Raises the CustomEvent event.

See Also

SmartDBControl Class | Adillis.SmartDBForms Namespace