ListView::GroupSeparatorTemplate Property
Gets or sets the user-defined content for the separator between groups in a ListView control.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
[TemplateContainerAttribute(typeof(ListViewItem))] [PersistenceModeAttribute(PersistenceMode::InnerProperty)] [BrowsableAttribute(false)] public: virtual property ITemplate^ GroupSeparatorTemplate { ITemplate^ get (); void set (ITemplate^ value); }
<asp:ListView> <GroupSeparatorTemplate>ITemplate</GroupSeparatorTemplate> </asp:ListView>
Property Value
Type: System.Web.UI::ITemplateAn object that contains the custom content for the group separator. The default is nullptr, which indicates that this property is not set.
The separator enables you to put an element that has custom content between each group. The ListView control then alternately renders the GroupTemplate content and the GroupSeparatorTemplate content. The GroupTemplate content is always rendered last.
Make sure that you define the content for the whole row in the GroupSeparatorTemplate template, because the ListView control renders the GroupSeparatorTemplate content inside the LayoutTemplate template. For example, the groups in the ListView control might be created by using a table row (tr) element. If the GroupItemCount property is set to 3, the colspan attribute must be set to 3 in the GroupSeparatorTemplate template.
To specify a template declaratively for the separator, add a GroupSeparatorTemplate element inside the ListView control. You can then add the contents of the template to the GroupSeparatorTemplate element.
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.