[Root] / Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid.Export Namespace / GroupHeaderFormat Class / SingleItemFormat Property


In This Topic
    SingleItemFormat Property
    In This Topic
    Gets or sets the text displayed in group headers when a group contains single items.
    Syntax
    'Declaration
     
    Public Property SingleItemFormat As String
    'Usage
     
    Dim instance As GroupHeaderFormat
    Dim value As String
     
    instance.SingleItemFormat = value
     
    value = instance.SingleItemFormat
    public string SingleItemFormat {get; set;}

    Property Value

    A string representing the text displayed in group headers when a group contains single items. By default, "{0}: {1} ({2} items)".
    Remarks

    The string can contain parameters that represent information about their corresponding group:

    {0} represents the title or field name of the column by whose values the items are grouped. By default, the column's Title will be used (e.g., "Country"); however, if the UseFieldNamesInHeader property is set to true, the column's FieldName will be used (e.g., "ShipCountry").

    {1} represents the value of the group (e.g., "Canada").

    {2} represents the number of items in the group.

    {3} represents a value indicating whether the group has child groups.

    If set to null, group headers will not be displayed.

    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also