Gets the style of any Web server controls contained by the DataControlField object.
Assembly: System.Web (in System.Web.dll)
The property governs the appearance of any Web server controls contained by types derived from DataControlField.
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.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.