This documentation is archived and is not being maintained.

ListView::ItemSeparatorTemplate Property

Gets or sets the custom content for the separator between the items in a ListView control.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

[TemplateContainerAttribute(typeof(ListViewItem))]
[BrowsableAttribute(false)]
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
public:
virtual property ITemplate^ ItemSeparatorTemplate {
	ITemplate^ get ();
	void set (ITemplate^ value);
}
<asp:ListView>
	<ItemSeparatorTemplate>ITemplate</ItemSeparatorTemplate>
</asp:ListView>

Property Value

Type: System.Web.UI::ITemplate
An object that contains the custom content for the separator between the items of the ListView control. The default is nullptr, which indicates that this property is not set.

Use the ItemSeparatorTemplate property to define the contents of the separator between single items of the ListView control. The ItemSeparatorTemplate is displayed after every item except the last one.

To specify the custom template declaratively, add an ItemSeparatorTemplate element inside the ListView control. You can then add the contents of the template to the ItemSeparatorTemplate element.

The following example shows how to create an item separator in the ListView control by using the ItemSeparatorTemplate property.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: