ObjectList.LabelField Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value (the name or data field) that identifies the field to use as a label for each item. The default value is empty, which causes the first field in the AllFields collection to be used as a label for each item. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

[TypeConverterAttribute(typeof(DataFieldConverter))]
public string LabelField { get; set; }

Property Value

Type: System.String

The name or data field that identifies the field to use as a label for each item.

This property is ignored if the list view is shown as a table.

For a code sample, see the example in System.Web.UI.MobileControls.ObjectList.

.NET Framework
Available since 1.1

ObjectList Class
System.Web.UI.MobileControls Namespace
Introduction to the ObjectList Control
Creating Custom Mobile Controls

Return to top
Show: