Skip to main content
A newer version of this page is available. .
Tab

ASPxGridViewCustomCallbackEventArgs Class

Provides data for the ASPxGridView.CustomCallback event.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public class ASPxGridViewCustomCallbackEventArgs :
    ASPxGridCustomCallbackEventArgs

Remarks

The ASPxGridView.CustomCallback event is raised when a round trip to the server has been initiated. This occurs when the client ASPxClientGridView.PerformCallback method is called.

The ASPxGridViewCustomCallbackEventArgs class provides the ASPxGridCustomCallbackEventArgs.Parameters property that specifies a string containing specific information passed from the client side. You can use this property to recognize different kinds of callbacks for performing various actions on the server side.

Example

protected void Grid_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e) {
     if(e.Parameters == "ApplyCustomFilter")
          Grid.FilterExpression = "City = 'Bratislava'";
     if(e.Parameters == "ApplyCustomGrouping") { 
          Grid.DataColumns["City"].GroupBy();
          Grid.ExpandAll();
     }
}

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

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.

Inheritance

Object
EventArgs
ASPxGridCustomCallbackEventArgs
ASPxGridViewCustomCallbackEventArgs
See Also