GridView.ColumnsGenerator Property
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
The control that will automatically generate the columns for a GridView control that uses ASP.NET Dynamic Data features.
- Attributes
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.
Produk | Versi |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Umpan balik .NET
.NET adalah proyek sumber terbuka. Pilih tautan untuk memberikan umpan balik: