| 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
)
Public Function RenderGrid (
pageId As Integer,
container As String
) As String
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:
StringA string with the rendered output of the Grid if it exists; the empty string otherwise.
See Also