SPDataSource.IncludeHidden Property

Gets or sets a System.Boolean value that specifies whether hidden fields are included in the query.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property IncludeHidden As Boolean
    Get
    Set
'Usage
Dim instance As SPDataSource
Dim value As Boolean

value = instance.IncludeHidden

instance.IncludeHidden = value
public bool IncludeHidden { get; set; }

Property Value

Type: System.Boolean
true if hidden fields are included in the query; otherwise, false. The default value is false.

Remarks

The value of this property only affects the query if the ViewFields Element (List) tag in the CAML query of the SelectCommand property is not specified—in other words, if the query requests all the fields in the list. If ViewFields tag is specified, the value of this property is ignored.

See Also

Reference

SPDataSource Class

SPDataSource Members

Microsoft.SharePoint.WebControls Namespace