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:
Yorum Gönder