SortRequest event

(Windows only; GUI for .NET only)

The .NET event published when some user action initiates a sort operation in the bound .NET control (for example, clicking on a column header in a grid control).

You can use this event when the BindingSource object is bound to a query or a buffer. If bound to a ProDataSet object, this event applies only to the top-level table displayed in the .NET control.

Return type: VOID

Access: PUBLIC

Applies to: Progress.Data.BindingSource class

Delegate: Progress.Data.SortRequestEventHandler

Syntax

The delegate for this event defines the following event handler signature:

EventHandlerName 
  ( 
     INPUT sender AS CLASS System.Object,
     INPUT args AS CLASS Progress.Data.SortRequestEventArgs
  ).
EventHandlerName
The name of the event handler.
sender
Object reference to the BindingSource object instance that published the event.
args
Object reference to a SortRequestEventArgs object instance containing arguments for the event.

When this event occurs, the event handler must reopen the query associated with the ABL data source object with a modified sort criteria based on the values specified in the SortRequestEventArgs object.

This event occurs only for .NET controls that rely on their data source for sorting.

See also

Progress.Data.SortRequestEventArgs class