Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcComboBox Class / ItemTemplate Property


In This Topic
    ItemTemplate Property (GcComboBox)
    In This Topic
    Gets or sets the System.Windows.DataTemplate used to display each item.
    Syntax
    'Declaration
     
    Public Property ItemTemplate As DataTemplate
    'Usage
     
    Dim instance As GcComboBox
    Dim value As DataTemplate
     
    instance.ItemTemplate = value
     
    value = instance.ItemTemplate
    public DataTemplate ItemTemplate {get; set;}

    Property Value

    The template that specifies the visualization of the data objects. The default is a null reference (Nothing in Visual Basic).
    Remarks
    ItemTemplate property is only valid when UseMultipleColumn is tree. You can use the ItemTemplate property to specify the visual representation of your data. ItemTemplate is particularly useful when you bind the ItemsSource to data. You use a System.Windows.DataTemplate to define the appearance of your data objects. The content of your System.Windows.DataTemplate becomes the visual structure of your data objects. If you do not set the ItemTemplate, the GcComboBox displays the string representation of the objects in a collection.
    See Also