Publish Filter Expression in FilterDialog

I'm using custom sorting in DBAdvGrids. A query must concatenate three elements:

"SELECT * FROM DBTable" following by a filter condition "WHERE xColumn = 'ABC' " and a order clause "ORDER BY yColumn"
The second element is now obtained from Scalabium's SMDBFilterDialog component. It has a property -Expression- that contains the filter built in the dialog. So the task is easy: SELECT * FROM DBTable ' + ' WHERE ' + SMDBFilterDialog1.Expression + OrderClause.
The Order Clause is from OnCanSort event from the DBAdvGrids1.
I hope I explained the usefulness of publishing Filter Expression in your component.
Best Regards
Francisco Alvarado
  

The event DBAdvGrid.OnSetQueryOrder is triggered that passed this expression as event parameter.