smartDBforms.NET API Reference

TemplatesControlCenter.TemplateSelectorType Property

Specifies the name of the class that should be used for template selection. The class should be accessible in design time also. This means that the class cannot reside in the APP_Code folder. It should be in an compiled assembly in the bin folder or other accessible location.

[Visual Basic]
Public Property TemplateSelectorType As String
[C#]
public String TemplateSelectorType {get; set;}

Remarks

By default the SelectTemplateID method is used for template selection. The only disadvantage of this is that it cannot be used during design time because the code in UserControl files is not accessible at design-time. To overcome this you can create a class that inherits from ITemplateSelector and copy the template selection code to it. Then you specify the class name as a value for this property. In this way at design time SmartDBControl will look almost the same as in runtime.

See Also

TemplatesControlCenter Class | Adillis.SmartDBForms.Templates Namespace | SelectTemplateID | SelectTemplateID