Gets the style of any Web server controls contained by the DataControlField object.
Assembly: System.Web (in System.Web.dll)
The DataControlField.property governs the appearance of any Web server controls contained by types derived from
This property does not affect all derived types. The BoundField control, which typically displays text data and contains only TextBox controls, is only affected by the property when in Edit state. Web server controls such as ButtonField and CheckBoxField might be affected by the property, depending on the specific configuration of the control object instances contained by the field. For example, the ButtonField control can be rendered as a LinkButton, ImageButton, or Button object. Although a LinkButton control is affected by font attributes of the specified Style object, a Button control is not.
The following code example demonstrates how to use BoundField and ButtonField objects, which are derived from DataControlField, to display rows in a DetailsView control. The property of the ButtonField object is set and governs how the LinkButton control contained by the field is displayed.
Available since 2.0