Syncfusion.SfListView.XForms
Example 
Syncfusion.ListView.XForms Namespace > SfListView Class : GroupHeaderTemplate Property

GroupHeaderTemplate Property

Gets or sets the Xamarin.Forms.DataTemplate for the group headers of SfListView.
Syntax
public Xamarin.Forms.DataTemplate GroupHeaderTemplate {get; set;}
Example
SfListView listView = new SfListView();
listView.GroupHeaderTemplate = new DataTemplate(() =>
{
   var grid = new Grid();
   
   var label1 = new Label();
   label1.SetBinding(Label.TextProperty, new Binding("Key"));
        
   var label2 = new Label();
   Binding binding = new Binding("Items");
   binding.Converter = new Converter();
   label2.SetBinding(Label.TextProperty, binding);
        
   grid.Children.Add(label1);
   grid.Children.Add(label2, 1, 0);
   
   return grid;
});
AssemblyVersion

Syncfusion.SfListView.XForms: 16.4451.0.40

See Also