title: How to set DevExpress MVC GridView Edit button hidden for some certain fields?
body: <p>I have a DevExpress MVC GridView in my project, I want to hide DevExpress MVC GridView Edit button for some certain fields. any idea?</p>
  
  <p>Here is my View Code.</p>
  
  <pre><code>@Html.DevExpress().GridView(settings =&gt;
  {
      settings.Name = "GridView";
      settings.CallbackRouteValues = new { Controller = "Home", Action =   "GridViewPartial" };
  
      settings.SettingsEditing.AddNewRowRouteValues = new { Controller = "Home", Action = "GridViewPartialAddNew" };
      settings.SettingsEditing.UpdateRowRouteValues = new { Controller = "Home", Action = "GridViewPartialUpdate" };
      settings.SettingsEditing.DeleteRowRouteValues = new { Controller = "Home", Action = "GridViewPartialDelete" };
      settings.SettingsEditing.Mode = GridViewEditingMode.EditFormAndDisplayRow;
      settings.SettingsBehavior.ConfirmDelete = true;
  
      settings.CommandColumn.Visible = true;
      settings.CommandColumn.NewButton.Visible = true;
      settings.CommandColumn.DeleteButton.Visible = true;
      settings.CommandColumn.EditButton.Visible = true;
  
      settings.KeyFieldName = "FirstCmOutputId";
  
      settings.SettingsPager.Visible = true;
      settings.Settings.ShowGroupPanel = true;
      settings.Settings.ShowFilterRow = true;
      settings.SettingsBehavior.AllowSelectByRowClick = true;
  
  
      settings.SettingsDetail.AllowOnlyOneMasterRowExpanded = true;
      settings.SettingsDetail.ShowDetailRow = true;
  
      settings.Columns.Add("Name");
      settings.Columns.Add("Intervention");
      settings.Columns.Add("Indicator");
      settings.Columns.Add("UseOfOutput");
      settings.Columns.Add("UserOfOutput");
      settings.Columns.Add("PlanningFrom");
      settings.Columns.Add("PlanningTo");
      settings.Columns.Add("DateOfPlanning");
      settings.Columns.Add("City");
  
      settings.SetDetailRowTemplateContent(c =&gt; {
              Html.RenderAction("GridView1Partial", new { OutputID =  DataBinder.Eval(c.DataItem, "FirstCmOutputId") });
          });
  }).Bind(Model).GetHtml()
  </code></pre>
  
  <p>In above View code the Edit button is enable for all the fields but i need to disable the Edit button for some certain fields. Any help would be appreciated.</p>
  
  <p>Regards</p>