Devepress ASPxGrid üzerinde Delete/İnsert/Update butonunu gizlemek

Devepress ASPxGridView üzerinde kullanıcı bazında Delete/İnsert/Update butonunu gizlemek gerekebilir. Bu işlemi yapmak için aşağıdaki kod kullanılabilir. 





protected void ASPxGridView1_CommandButtonInitialize(object sender, ASPxGridViewCommandButtonEventArgs e)
        {

          if (e.ButtonType == DevExpress.Web.ASPxGridView.ColumnCommandButtonType.Delete)
                e.Visible = false;
        }

Hiç yorum yok:

BlackListIP control on Serenity platform (.NET Core)

 In the Serenity platform, if you want to block IPs that belong to people you do not want to come from outside in the .net core web project,...