ObjectListViewMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.
Specifies the display mode of the object list. This class cannot be inherited. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
public enum class ObjectListViewMode
public enum ObjectListViewMode
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public enum ObjectListViewMode
type ObjectListViewMode =
[<System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type ObjectListViewMode =
Public Enum ObjectListViewMode
- Inheritance
- Attributes
Fields
Name | Value | Description |
---|---|---|
List | 0 | List view. This view displays each field of the item, including title and value. In HTML, this view is combined with the |
Commands | 1 | Command's view in WML. This is the default view displayed when the page containing the object list is rendered for the first time. It consists of either the label fields of the items, or (when TableFields is not empty) a table with columns corresponding to the table fields and rows corresponding to items. When there is more information in the |
Details | 2 | Details view. This view is rendered separately only for WML devices. It consists of a menu with the ObjectList's commands, along with an menu item displaying the |
Remarks
The display mode is available through the ViewMode property. This enumeration allows the user to set the current display mode of the ObjectList control. If you have an ObjectList with an item template, you can place a button in each item, handle the click event on the button, and set the view mode to the Details
view to show the item details.
Note
You must first select an item before setting this enumeration to Commands
or Details
view. An attempt to set the enumeration before selecting an item throws an exception.