Skip to main content

GridViewSettings.CommandButtonInitialize Property

Enables individual row cells containing command column items to be initialized.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5


public ASPxGridViewCommandButtonEventHandler CommandButtonInitialize { get; set; }

Property Value

Type Description

A ASPxGridViewCommandButtonEventHandler delegate method allowing you to implement custom processing.


settings.CommandButtonInitialize = (sender, e) => {  
    var grd = sender as MVCxGridView;  
    if (e.ButtonType == ColumnCommandButtonType.Delete) {  
        var val = grd.GetRowValues(e.VisibleIndex, ...);  
        e.Visible = !(bool)val;  
See Also