System.Web
2.0.0.0
System.Web.UI.WebControls.DataControlField
The class is the abstract base class for button fields and contains the methods and properties that are common to all button fields. Because this class is abstract, you cannot create an instance of it directly. Instead, you must create an instance of a non-abstract class that inherits from the class, such as the or class.
An object that is derived from the is used by data-bound controls (such as the and controls) to display one or more buttons for each record that is displayed. A button field is displayed differently depending on the data-bound control in which it is used. For example, the control displays a button field as a column, whereas the control displays it as a row.
Clicking a button in a button field raises the command event of the parent data-bound control. You can provide a custom routine to perform when a button is clicked by providing an event handler for the command event.
The control raises the event, whereas the control raises the event.
To specify the type of button to display, use the property. To show or hide the header section of a object, set the property.
Some data-bound controls (such as the control) can show or hide only the entire header section of the control. These data-bound controls do not support the property for an individual button field. To show or hide the entire header section of a data-bound control (if available), use the ShowHeader property for the control.
Serves as the abstract base class for button fields, such as the or class. The class provides the methods and properties that are common to all button fields.
Constructor
Because the class is an abstract class, you cannot create a object directly.
Initializes a new instance of the class.
2.0.0.0
Property
System.ComponentModel.DefaultValue(System.Web.UI.WebControls.ButtonType.Link)
System.Web.UI.WebControls.ButtonType
To be added.
Use the property to specify which type of button is displayed in a button field. The following table lists the available button types.
-
Button type value
Displays as
-
A button control.
-
A button with an image.
-
A link.
The value of this property is stored in view state.
Gets or sets the button type to display in the button field.
2.0.0.0
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
Validation groups allow you to assign validation controls on a page to a specific category. Each validation group can be validated independently of other validation groups on the page. Use the property to specify the name of the validation group for which the object causes validation when it posts back to the server.
The property has an effect only when the value of the property is set to true. When you specify a value for the property, only the validation controls that are part of the specified group are validated when the posts back to the server. If you do not specify a value for the property and the property is set to true, all validation controls on the page that are not assigned to a validation group are validated when the posts back to the server.
The value of this property is stored in view state.
Gets or sets a value indicating whether validation is performed when a button in a object is clicked.
2.0.0.0
Method
System.Void
The method is a helper method that is used by the method to copy the properties of the current object that is derived from the class to the object that is passed in the parameter.
Copies the properties of the current object that is derived from the class to the specified object.
The to which to copy the properties of the current .
2.0.0.0
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
Use the property to show or hide the header section of a object. To show the header section, set the property to true.
Some data-bound controls (such as the control) can show or hide only the entire header section of the control. These data-bound controls do not support the property for an individual button field. To show or hide the entire header section of a data-bound control (if available), use the ShowHeader property for the control.
The value of this property is stored in view state.
Gets or sets a value indicating whether the header section is displayed in a object.
2.0.0.0
Property
System.ComponentModel.DefaultValue("")
System.String
To be added.
Use the property to specify the validation group to validate when a button in a object is clicked. Only the validation controls in the specified validation group are validated.
The property must be set to true for the property to have an effect.
For more information on validation groups, see .
The value of this property is stored in view state.
Gets or sets the name of the group of validation controls to validate when a button in a object is clicked.
2.0.0.0