Back to Devexpress

TcxCustomGrid.CreateView(TcxCustomGridViewClass) Method

vcl-cxgrid-dot-tcxcustomgrid-dot-createview-x28-cxgridcustomview-dot-tcxcustomgridviewclass-x29.md

latest1.2 KB
Original Source

TcxCustomGrid.CreateView(TcxCustomGridViewClass) Method

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

Declaration

delphi
function CreateView(AViewClass: TcxCustomGridViewClass): TcxCustomGridView;

Parameters

NameType
AViewClassTcxCustomGridViewClass

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

TcxCustomGrid.ViewCount

TcxCustomGrid.Views

TcxCustomGrid Class

TcxCustomGrid Members

cxGrid Unit