When an end-user clicks the Save command on the Query Builder control's toolbar or the client-side Save method is called, the server-side ASPxQueryBuilder.SaveQuery event occurs. A handler receives an event argument providing access to a string containing the resulting query both as a string value and an internal representation speciffic for the DevExpress Data Access library (a SelectQuery object).
Protected Sub ASPxQueryBuilder1_SaveQuery(ByVal sender As Object, ByVal e As DevExpress.XtraReports.Web.SaveQueryEventArgs)
Dim query As SelectQuery = e.ResultQuery
Dim queryString As String = e.SelectStatement
Note that a SelectQuery can be reopened in the Query Builder for further editing.