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

CardViewColumnState.ForceType(Type) Method

Inform the CardView extension about the types of its columns.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll

Declaration

public void ForceType(
    Type columnType
)

Parameters

Name Type Description
columnType Type

The CardView’s column type.

Remarks

If the CardView’s data source is not empty on the first load, the CardView automatically determines and saves the type of objects contained within its data source, so you do not have to force the type of objects contained within its data source.

If the CardView’s data source is empty (e.g., because of an invalid filter expression or empty data base) on the first load, use the ForceType method to inform the CardView extension about the types of its columns.

See Also