Skip to main content
A newer version of this page is available. .

RowProperties.FieldName Property

Gets or sets the name of the data source field to bind to a row item.

Namespace: DevExpress.XtraVerticalGrid.Rows

Assembly: DevExpress.XtraVerticalGrid.v18.2.dll

Declaration

[DefaultValue("")]
[XtraSerializableProperty]
public virtual string FieldName { get; set; }

Property Value

Type Default Description
String String.Empty

A String value specifying the name of the data field bound to a row.

Remarks

If your grid control operates in one of its bound modes, it accesses data from the associated data source object. A data source is bound to the grid control with the help of the VGridControl.DataSource and VGridControl.DataMember properties. In this case rows correspond to data source fields. Use the FieldName property to specify the name of the data source field from which a row item should acquire data.

The FieldName property value can also be used as a row item identifier, for instance, in the MultiEditorRowPropertiesCollection.Item property.

If you change this property at runtime to bind a row item to another data field, ensure to update the row item caption as well. For this purpose, set the RowProperties.Caption property to the appropriate value which describes data represented by the bound field.

When working in Unbound Mode the grid control has no data source associated with it. In this case, the FieldName property is not in effect. Each row (row item) in this mode has a single data cell whose initial value can be set via the RowProperties.Value property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the FieldName property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also