EditCommandColumn::ButtonType Property

 

Gets or sets the button type for the column.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
property ButtonColumnType ButtonType {
	virtual ButtonColumnType get();
	virtual void set(ButtonColumnType value);
}

Property Value

Type: System.Web.UI.WebControls::ButtonColumnType

One of the ButtonColumnType values. The default value is LinkButton.

Exception Condition
ArgumentOutOfRangeException

The specified button type is not one of the ButtonColumnType values.

Use the ButtonType property to specify whether the buttons in the column display as push buttons or hyperlinks.

The value of this property is stored in view state.

The following example demonstrates how to use the ButtonType property to display the Edit command buttons as push buttons.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: