Back to Devexpress

GridViewCommandColumn.ButtonType Property

aspnet-devexpress-dot-web-dot-gridviewcommandcolumn-20992741.md

latest3.0 KB
Original Source

GridViewCommandColumn.ButtonType Property

OBSOLETE

Use the ButtonRenderMode property instead.

Specifies the type of the command buttons for the current command column.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(GridCommandButtonRenderMode.Default)]
[Obsolete("Use the ButtonRenderMode property instead.")]
public GridCommandButtonRenderMode ButtonType { get; set; }
vb
<Obsolete("Use the ButtonRenderMode property instead.")>
<DefaultValue(GridCommandButtonRenderMode.Default)>
Public Property ButtonType As GridCommandButtonRenderMode

Property Value

TypeDefaultDescription
GridCommandButtonRenderModeDefault

One of the GridCommandButtonRenderMode enumeration values.

|

Available values:

NameDescription
Default

The command item render mode depends on the command column’s and grid settings. If these settings are set to Default, the command button is rendered as a link.

| | Link |

The command item is rendered as a link.

| | Image |

The command item is rendered as an image.

| | Button |

The command item is rendered as a button.

| | Danger |

The button indicates a dangerous or potentially negative action.

| | Outline |

A button with a colored border and without a background color.

| | Secondary |

A button of secondary importance.

|

Remarks

Use the ButtonType property to specify which button types will be used to render command buttons in the current command column. If the property is set to Default , the column button type depends upon the GridViewCommandButtonSettings.ButtonType property value.

See Also

Grid View

GridViewCommandColumn Class

GridViewCommandColumn Members

DevExpress.Web Namespace