smartDBforms.NET API Reference

TemplatesUserControl.SelectTemplateID Method 

Determines the corresponding template holder control to be used for data display and editing. This method should be implemented by inheritors.

[Visual Basic]
Overridable Protected Function SelectTemplateID( _
   ByVal DataBindItem As DataBindItem _
) As String
[C#]
protected virtual string SelectTemplateID(
   DataBindItem dataBindItem
);

Parameters

DataBindItem
A DataBindItem instance, which describes the current value and also provides meta information about the respective data column.

Return Value

The ID of a TemplateHolder control that will be used to display the data. A TemplateHolder with such an id should exists in this TemplatesUserControl instance.

Remarks

If TemplateSelectorType has been specified then the specified type is instantiated and is used instead of this method. TemplateSelectorType allows the template selection to be used also in design-time. This makes BaseSmartDBControl to render the proper user interface during design-time.

See Also

TemplatesUserControl Class | Adillis.SmartDBForms.Templates Namespace