HtmlObjectListAdapter.ShouldRenderAsTable Method

Definition

Returns a Boolean that indicates whether the list must be rendered as a table. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

protected:
 virtual bool ShouldRenderAsTable();
protected virtual bool ShouldRenderAsTable ();
abstract member ShouldRenderAsTable : unit -> bool
override this.ShouldRenderAsTable : unit -> bool
Protected Overridable Function ShouldRenderAsTable () As Boolean

Returns

true if the list must be rendered as a table; otherwise, false.

Remarks

This method can be overridden in order to change the manner in which the list view is rendered.

Note

Even if the ShouldRenderAsTable method returns true, the target device might not support tables, in which case the list view will not be rendered as a table.

The ShouldRenderAsTable method returns a Boolean that indicates whether the specified table will fit on the target device screen, whereas the Tables property of the MobileCapabilities class returns a Boolean that indicates whether the device supports tables at all.

Applies to

See also