ListFieldIterator.DefaultTemplateName Property
Gets the value of the ID attribute of the <RenderingTemplate> element that defines the rendering of the control.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Property Value
Type: System.StringA String that represents the ID of the default template for the control.
In Windows SharePoint Services 3.0 this property always returns "ListFieldIterator", which is the value of the ID attribute of a <RenderingTemplate> element in the file FormTemplates.ascx in folder %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\template\controltemplates.
You must not modify DefaultTemplates.ascx. To customize the rendering of this control, create another <RenderingTemplate> element in a new .ascx file in the ...\CONTROLTEMPLATES folder. Give your new <RenderingTemplate> element an ID value that is descriptive but likely to be unique. For example, you could add your company name to the end of the ID, such as "ListFieldIteratorMyCompanyInc". Then derive a new class from ListFieldIterator and override its DefaultTemplateName property so that it returns your custom ID.