Bewerken

Share via


GridView.ColumnsGenerator Property

Definition

Gets or sets the control that will automatically generate the columns for a GridView control that uses ASP.NET Dynamic Data features.

public:
 property System::Web::UI::IAutoFieldGenerator ^ ColumnsGenerator { System::Web::UI::IAutoFieldGenerator ^ get(); void set(System::Web::UI::IAutoFieldGenerator ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Web.UI.IAutoFieldGenerator ColumnsGenerator { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.ColumnsGenerator : System.Web.UI.IAutoFieldGenerator with get, set
Public Property ColumnsGenerator As IAutoFieldGenerator

Property Value

The control that will automatically generate the columns for a GridView control that uses ASP.NET Dynamic Data features.

Attributes

Remarks

In order to use ASP.NET Dynamic Data features in a page, you must add a DynamicDataManager control to the page. This enables ASP.NET Dynamic Data features for data-bound controls in a page, such as GridView control. To enable an individual GridView control to use Dynamic Data features, you must associate it with the DynamicDataManager control by calling the DynamicDataManager.RegisterControl method during the Page_Init event. This method automatically sets the ColumnsGenerator property to the DynamicDataManager object.

Applies to