GridView.ColumnsGenerator Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.