ObjectList::LabelField Property

 

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)

public:
[TypeConverterAttribute((DataFieldConverter^::typeid))]
property String^ LabelField {
	String^ get();
	void set(String^ value);
}

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: