Skip to main content
Tab

ASPxCardView.SettingsBehavior Property

Provides access to the CardView’s behavior settings.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

Declaration

public ASPxCardViewBehaviorSettings SettingsBehavior { get; }

Property Value

Type Description
ASPxCardViewBehaviorSettings

An ASPxCardViewBehaviorSettings object that contains the control’s behavior settings.

Example

The following example creates and initializes an ASPxCardView at runtime.

protected void Page_Load(object sender, EventArgs e)
{
    ASPxCardView cv1 = new ASPxCardView();
    cv1.ID = "ASPxCardView1";
    cv1.KeyFieldName = "ProductID";
    Page.Form.Controls.Add(cv1);
    cv1.SettingsBehavior.AllowFocusedCard = true;
    cv1.DataSourceID = "SqlDataSource1";
    cv1.DataBind();
}
See Also