Skip to main content

ASPxImageGallery.NameField Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public string NameField { get; set; }

Property Value

Type Default Description
String String.Empty

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 named “Name”. You can also use the ASPxImageGallery.ItemDataBound property to manipulate a control item’s settings as required.

See Also