編輯

共用方式為


DataGridColumn.HeaderTemplateSelector Property

Definition

Gets or sets the object that selects which template to use for the column header.

public:
 property System::Windows::Controls::DataTemplateSelector ^ HeaderTemplateSelector { System::Windows::Controls::DataTemplateSelector ^ get(); void set(System::Windows::Controls::DataTemplateSelector ^ value); };
public System.Windows.Controls.DataTemplateSelector HeaderTemplateSelector { get; set; }
member this.HeaderTemplateSelector : System.Windows.Controls.DataTemplateSelector with get, set
Public Property HeaderTemplateSelector As DataTemplateSelector

Property Value

The object that selects the template. The registered default is null. For information about what can influence the value, see DependencyProperty.

Applies to