Skip to main content
Tab

GridViewCommandButtonSettings.ButtonType Property

OBSOLETE

Use the RenderMode property instead.

Specifies the button type that is used to render the current command button.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue(GridCommandButtonRenderMode.Default)]
[Obsolete("Use the RenderMode property instead.")]
public GridCommandButtonRenderMode ButtonType { get; set; }

Property Value

Type Default Description
GridCommandButtonRenderMode Default

One of the GridCommandButtonRenderMode enumeration values.

Available values:

Name Description
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.

The command item is rendered as a link.

ButtonType_Link

Image

The command item is rendered as an image.

ButtonType_Image

Button

The command item is rendered as a button.

ButtonType_Button

Danger

The button indicates a dangerous or potentially negative action.

CommandButton - Danger

Outline

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

CommandButton - Outline

Secondary

A button of secondary importance.

CommandButton - Secondary

Property Paths

You can access this nested property as listed below:

Object Type Path to ButtonType
ASPxGridViewCommandButtonSettings
.ApplyFilterButton .ButtonType
ASPxGridViewCommandButtonSettings
.CancelButton .ButtonType
ASPxGridViewCommandButtonSettings
.ClearFilterButton .ButtonType
ASPxGridViewCommandButtonSettings
.DeleteButton .ButtonType
ASPxGridViewCommandButtonSettings
.EditButton .ButtonType
ASPxGridViewCommandButtonSettings
.HidePreviewButton .ButtonType
ASPxGridViewCommandButtonSettings
.NewButton .ButtonType
ASPxGridViewCommandButtonSettings
.PreviewChangesButton .ButtonType
ASPxGridViewCommandButtonSettings
.RecoverButton .ButtonType
ASPxGridViewCommandButtonSettings
.SearchPanelApplyButton .ButtonType
ASPxGridViewCommandButtonSettings
.SearchPanelClearButton .ButtonType
ASPxGridViewCommandButtonSettings
.SelectButton .ButtonType
ASPxGridViewCommandButtonSettings
.UpdateButton .ButtonType
ASPxGridViewCommandButtonSettings
.UpdateSummariesButton .ButtonType

Remarks

Use the ButtonType property to specify which button type is used to render the command button. The type of button in a particular command column can be specified by the GridViewCommandColumn.ButtonType property.

The Default value corresponds to the Link value.

See Also