ObjectListViewMode

ObjectListViewModeserializable

System.Web.UI.MobileControls (system.web.mobile.dll)enum

This enumeration is used in conjunction with the ObjectList.ViewMode property. The ObjectList supports three different view states. Initially, when an ObjectList is first shown, it will use the List mode, which shows all items. You can programmatically change the view mode to show the details or commands for a specific item. First, set the ObjectList.SelectedIndex property so that an item is selected. Next, set ObjectList.ViewMode to Details or Commands. Note that in HTML, these settings are equivalent, because the details view is combined with the commands view, with the commands appearing as hyperlinks below the details.

public enum ObjectListViewMode {
   List = 0,
   Commands = 1,
   Details = 2
}

Hierarchy

System.Object System.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) ObjectListViewMode

Returned By

ObjectList.ViewMode

Passed To

ObjectList.ViewMode



    Part I: Introduction to ASP.NET
    Part III: Namespace Reference
    Chapter 40. The System.Web.UI.MobileControls Namespace
    Chapter 42. The System.Web.UI.WebControls Namespace