Tab

CardViewCommandLayoutItem.ShowSelectCheckbox Property

Specifies whether the Select Check Box command item is displayed in the command layout item.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

[DefaultValue(false)]
public bool ShowSelectCheckbox { get; set; }
<DefaultValue(False)>
Public Property ShowSelectCheckbox As Boolean

Property Value

Type Default Description
Boolean

false

true, if the check box is visible; otherwise, false.

Examples

The following example uses an external check box to change the visibility of ASPxCardView check boxes in multi-selection mode.

View Example

using System;
using DevExpress.Web;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ASPxCardView1_CommandButtonInitialize(object sender, DevExpress.Web.ASPxCardViewCommandButtonEventArgs e)
    {
        if (e.ButtonType == CardViewCommandButtonType.SelectCheckbox)
            e.Visible = !chkDisabled.Checked;
    }
}
See Also