Version

ViewStyleResolved Property

Returns the resolved value of the control's ViewStyle property.
Syntax
'Declaration
 
Public ReadOnly Property ViewStyleResolved As ViewStyle
public ViewStyle ViewStyleResolved {get;}
Remarks

In the absence of a specific setting, the value returned by the ViewStyleResolved property is dependent on whether the DataSource property has been set. If it has, ViewStyle.Grid is returned; otherwise, ViewStyle.Standard is returned.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also