title: Setting the height of a devexpress mvc Gridview combo box
body: <p>I am using a DEvExpress mvc grid with a few combo boxes and I was wondering how I can set the maximum/minimum height (in a number of rows) of the drop down section.</p>
  
  <p>For example can I set the rows visible before you have to scroll or even if there is only one row of data for the drop down height to be set to a certain number of rows.</p>
  
  <p>The current code for the combo I have now is</p>
  
  <pre><code>@Html.DevExpress().ComboBox(edtSettings =&gt;
  {
      edtSettings.ControlStyle.CssClass = "employeeDetailsGridEditField";
      edtSettings.Name = "DepartmentID";
      edtSettings.Width = 350;
      //edtSettings.Height = 200; 
      //THIS sets the height of the initial control not the drop down part
      edtSettings.Properties.TextField = "DepartmentName";
      edtSettings.Properties.ValueField = "DepartmentID";
      edtSettings.Properties.ValueType = typeof(int);
      edtSettings.Properties.DropDownStyle = DropDownStyle.DropDown;
      edtSettings.ShowModelErrors = true;
  }).BindList(Model.DepartmentList).Bind(Model.EmployeeSingle.DefaultDepartmentID).GetHtml()
  </code></pre>
  
  <p>Is there a property for the drop down section height?</p>