Skip to main content
All docs
V24.2

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

DataLayoutControl.GetCurrentRecordFieldValue(String) Method

Returns the current record’s cell value in the specified data field.

Namespace: DevExpress.XtraDataLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public object GetCurrentRecordFieldValue(
    string fieldName
)

#Parameters

Name Type Description
fieldName String

A string value that specifies the data field name.

#Returns

Type Description
Object

An object that specifies the cell value.

#Remarks

Use the DataLayoutControl‘s following properties and methods to manage data records in code:

  • RecordCount — Returns the number of records in the bound data source.
  • CurrentRecord — Gets an object that specifies the current data record.
  • CurrentRecordPosition — Gets or sets the index of the data record to be displayed in the control.
  • GetCurrentRecordFieldValue(String) — Returns the current record’s cell value in the specified data field.
  • SetCurrentRecordFieldValue(String, Object) — Assigns the specified value to the current record’s specified field.
See Also