ASPxImageGallery.NameField Property

Gets or sets the data source field that provides unique item identifier names.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll


public string NameField { get; set; }

Property Value

Type Default Description


A string value that specifies the name of the data source field that contains unique item identifier names.


The NameField property is in effect if an image gallery is bound to a data source.

Use the NameField property to specify the bound data source’s data field (or an xml element’s attribute) which contains unique item identifier names. The NameField property maps the ImageGalleryItem.Name properties of item objects to the specified data field’s values.

If the NameField property of a data bound image gallery is not defined, the control can automatically obtain item names from a data field which is na