Back to Devexpress

QueryBuilderSaveCallbackResult.SelectStatement Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-querybuildersavecallbackresult-12215917.md

latest2.9 KB
Original Source

QueryBuilderSaveCallbackResult.SelectStatement Property

Returns a string that specifies the resulting ‘SELECT’ statement.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public string SelectStatement { get; }
vb
Public ReadOnly Property SelectStatement As String

Property Value

TypeDescription
String

A string that specifies the final ‘SELECT’ statement.

|

Remarks

See the Saving Queries topic for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectStatement property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-mvc-query-builder-provide-data-to-the-gridview-extension/CS/MvcQueryBuilder/Controllers/QueryBuilderController.cs#L13

csharp
var result = QueryBuilderExtension.GetSaveCallbackResult("QueryBuilder");
Session["SelectCommand"] = result.SelectStatement;
return RedirectToAction("Index", "Home");

asp-net-mvc-query-builder-provide-data-to-the-gridview-extension/VB/MvcQueryBuilder/Controllers/QueryBuilderController.vb#L16

vb
Dim result = QueryBuilderExtension.GetSaveCallbackResult("QueryBuilder")
Session("SelectCommand") = result.SelectStatement
Return RedirectToAction("Index", "Home")

See Also

Saving Queries

QueryBuilderSaveCallbackResult Class

QueryBuilderSaveCallbackResult Members

DevExpress.Web.Mvc Namespace