Export (0) Print
Expand All

DataGridColumn.Initialize Method

Provides the base implementation to reset a column derived from the DataGridColumn class to its initial state.

[Visual Basic]
Public Overridable Sub Initialize()
[C#]
public virtual void Initialize();
[C++]
public: virtual void Initialize();
[JScript]
public function Initialize();

Remarks

The Initialize method provides the base implementation to reset a column derived from the DataGridColumn class to its initial state. This method is not called directly. Instead, this method is inherited by a derived column class, which can then be used to reset a column of the derived type. You can optionally override this method in the derived class to provide a custom initialization routine. This base implementation of the Initialize method is often called from the overridden method to reset properties common to all column types derived from the DataGridColumn class. The Initialize method is usually called during data-binding, prior to the first row being bound.

The following table shows the property that is set to when the Initialize method is used.

Property Initialized Value
DesignMode The design mode of the Web site containing the DataGrid control.
Note   This method is commonly used by control developers.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

DataGridColumn Class | DataGridColumn Members | System.Web.UI.WebControls Namespace | DesignMode | ISite.DesignMode | DataGrid

Show:
© 2014 Microsoft