[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 grid view.

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

Syntax

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

Parameters

gridView
SPGridView
the grid view to bind to
web
SPWeb
the web containing the data
scope
CAML..::QueryScope
the desired query scope
initColumns
Boolean
whether to initialize the grid view columns with the fields found in the result set

See Also

ICamlQuery Interface
JohnHolliday.Caml.Net Namespace