DatasetQuery.Execute Property
The value of the ExecutedCompleted property is changed when the operation is concluded.
C# Example:
if (@Dataset.Query.Query1.Execute.Equals(0)) @Dataset.Query.Query1.Execute = 1; else @Dataset.Query.Query1.Execute = 0;