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

TcxDBDataController.GetItemByFieldName(string) Method

Returns the item which corresponds to a specific field.

#Declaration

Delphi
function GetItemByFieldName(const AFieldName: string): TObject;

#Parameters

Name Type
AFieldName string

#Returns

Type
TObject

#Remarks

The GetItemByFieldName function returns the item which corresponds to the field whose name is specified by the AFieldName parameter. For instance, when working in a table view, the item represents an instance of the TcxGridDBColumn class. When working in a card view, the item is a card row and represents an instance of the TcxGridDBCardViewRow class.

If the item that corresponds to the specified field is not found, the GetItemByFieldName function returns nil.

See Also