This documentation is archived and is not being maintained.
ButtonColumn.ButtonType Property
.NET Framework 1.1
Gets or sets the type of button to display in the ButtonColumn column.
[Visual Basic] Public Overridable Property ButtonType As ButtonColumnType [C#] public virtual ButtonColumnType ButtonType {get; set;} [C++] public: __property virtual ButtonColumnType get_ButtonType(); public: __property virtual void set_ButtonType(ButtonColumnType); [JScript] public function get ButtonType() : ButtonColumnType; public function set ButtonType(ButtonColumnType);
Property Value
One of the ButtonColumnType values. The default value is LinkButton.
Exceptions
| Exception Type | Condition |
|---|---|
| ArgumentException | The specified column type is not one of the ButtonColumnType values. |
Remarks
Use this property to specify whether the buttons in the column are displayed as link or push buttons. Clicking on the command buttons in the column raises the ItemCommand event. You can programmatically control the action performed when the command button is clicked by providing an event handler for the ItemCommand event.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
ButtonColumn Class | ButtonColumn Members | System.Web.UI.WebControls Namespace | ButtonColumnType | ItemCommand
Show: