ButtonFieldBase::ButtonType Property
.NET Framework (current version)
Gets or sets the button type to display in the button field.
Assembly: System.Web (in System.Web.dll)
public: property ButtonType ButtonType { virtual ButtonType get(); virtual void set(ButtonType value); }
Property Value
Type: System.Web.UI.WebControls::ButtonTypeOne of the ButtonType values. The default is ButtonType.Link.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The value for the ButtonType property is not one of the ButtonType values. |
The following code example demonstrates how to use the ButtonType property to specify that buttons are displayed in the ButtonField object of a GridView control.
.NET Framework
Available since 2.0
Available since 2.0
Show: