DataControlField.Initialize Method (Boolean, Control)
Performs basic instance initialization for a data control field.
Assembly: System.Web (in System.Web.dll)
A value that indicates whether the control supports the sorting of columns of data.
Return ValueType: System.Boolean
Always returns false.
The control that the DataControlField object is associated with calls the method to initialize the field before it is added to a rows collection. Data controls such as DetailsView and GridView call the method in their CreateChildControls methods before calling other methods such as CreateRow to create specific rows with data.
Call this method when you are writing a custom data-bound control that uses DataControlFieldCell objects to perform basic initialization for any DataControlField objects. Implement this method if your derived type requires any object initialization before it populates DataControlFieldCell objects with data or controls in the InitializeCell method.
Available since 2.0