[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Executes the query and binds the results to a gridview.

Namespace: JohnHolliday.Caml.Net
Assembly:  JohnHolliday.Caml.Net (in JohnHolliday.Caml.Net.dll)

Syntax

C#
public void DataBind(
	SPGridView gridView,
	SPWeb web,
	CAML.CAML..::QueryScope scope,
	bool initColumns
)
Visual Basic (Declaration)
Public Sub DataBind ( _
	gridView As SPGridView, _
	web As SPWeb, _
	scope As CAML..::QueryScope, _
	initColumns As Boolean _
)
Visual C++
public:
virtual void DataBind (
	SPGridView^ gridView, 
	SPWeb^ web, 
	CAML..::QueryScope scope, 
	bool initColumns
) sealed

Parameters

gridView
SPGridView
the gridView to bind to
web
SPWeb
the web containing the data
scope
CAML..::QueryScope
the desired query scope
initColumns
Boolean
whether to initialize the gridview columns

Remarks

Optionally initializes the gridview columns using the fields associated with this query.

See Also