Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxGridServerModeDataController.CreateAllItems(Boolean) Method

Creates columns for fields in the bound dataset.

#Declaration

Delphi
procedure CreateAllItems(AMissingItemsOnly: Boolean = False);

#Parameters

Name Type Description
AMissingItemsOnly Boolean

Optional. Specifies if the data controller creates columns for all fields in the bound dataset.

You can pass True as the AMissingItemsOnly parameter to ensure that the procedure does not create columns for the dataset fields that already have associated columns in the same grid View.

Note

If you omit this parameter, the procedure always creates columns for all fields in the bound datset.

#Remarks

Call the CreateAllItems procedure to create columns for all fields in the bound dataset. The CreateAllItems procedure assigns the corresponding dataset field names to the DataBinding.FieldName property of all created columns.

Note

If a source dataset field’s Visible property is set to False, the corresponding created column’s Visible property is also set to False.

#Grid Column Deletion

To delete a grid column, release it directly in code (call the Free procedure in Delphi or use the delete keyword in C++Builder):

  cxGrid1ServerModeTableView1Column1.Free;
See Also