Skip to main content
All docs
V24.1

DataLayoutControl.SetCurrentRecordFieldValue(String, Object) Method

Assigns the specified value to the current record’s specified field.

Namespace: DevExpress.XtraDataLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public void SetCurrentRecordFieldValue(
    string fieldName,
    object value
)

Parameters

Name Type Description
fieldName String

A string value that specifies the field name.

value Object

An object that specifies the assigned 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