A newer version of this page is available. Switch to the current version.

GridSettingsBase.BeforeGetCallbackResult Property

Allows you to perform custom actions after a callback sent by the current extension has been processed on the server, but prior to the time the respective callback result render is formed.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll


public EventHandler BeforeGetCallbackResult { get; set; }
Public Property BeforeGetCallbackResult As EventHandler

Property Value

Type Description

An EventHandler delegate method allowing you to implement custom processing.


The following example illustrates how to use the GridSettingsBase.BeforeGetCallbackResult event to set the edit cell color dynamically.

settings.BeforeGetCallbackResult = (sender, e) => {
    MVCxGridView gridview = sender as MVCxGridView;
        gridview.DataColumns["StateDescription"].EditCellStyle.BackColor = System.Drawing.Color.Green;
        gridview.DataColumns["StateDescription"].EditCellStyle.BackColor = System.Drawing.Color.Yellow;                
See Also