Click or drag to resize

ViewModelTemplateTViewModelRenderGrid Method (Int32, String)

Renders the Grid in the given container on the page with the given ID. If no Grid exists on the page in the given container, the empty string is returned.

Namespace:  Dynamicweb.Rendering
Assembly:  Dynamicweb (in Dynamicweb.dll) Version: 9.10.0
Syntax
public string RenderGrid(
	int pageId,
	string container
)

Parameters

pageId
Type: SystemInt32
The id of the page in which to render the Grid.
container
Type: SystemString
The container that the Grid belongs to.

Return Value

Type: String
A string with the rendered output of the Grid if it exists; the empty string otherwise.
See Also