Skip to main content

TcxCustomGrid.CreateView(TcxCustomGridViewClass) Method

Creates a View of a specified class and adds it to the View list.

Declaration

function CreateView(AViewClass: TcxCustomGridViewClass): TcxCustomGridView;

Parameters

Name Type
AViewClass TcxCustomGridViewClass

Returns

Type
TcxCustomGridView

Remarks

The CreateView function creates a particular View, adds it to the View list specified by the Views property and returns it as the function’s result. The View class is defined by the AViewClass parameter. You can refer to the Views topic to learn about different View classes.

To display a View within a grid control, it must be assigned to a grid level of the TcxGridLevel class.

See Also