Skip to main content
A newer version of this page is available. .

How to: Change the Visibility of Check Boxes in Multi-Selection Mode

  • 2 minutes to read

This example demonstrates how to use an external check box to change the visibility of ASPxCardView check boxes used for the multi-selection.

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;
    }
}