title: Use ComboBoxEditSettings in Devexpress GridColumn
body: <p>I have a OneToMeny relation object model for User and UserGroup like this:</p>
  
  <pre><code>public class UserGroup : BaseModel, IEquatable&lt;UserGroup&gt;
  {
      private long _userGroupId;
      private string _userGroupName;
  
      public long UserGroupId
      {
          get { return _userGroupId; }
          set
          {
              _userGroupId = value;
              NotifyOfPropertyChange(() =&gt; UserGroupId);
          }
      }
  
      public string UserGroupName
      {
          get { return _userGroupName; }
          set
          {
              _userGroupName = value;
              NotifyOfPropertyChange(() =&gt; UserGroupName);
          }
      }
  
      public UserGroup GetCopy(bool getNew)
      {
          var copy = new UserGroup
          {
              UserGroupId = UserGroupId,
              UserGroupName = UserGroupName,
              State = getNew ? ModelStates.New : State,
          };
  
          return copy;
      }
  
      public bool Equals(UserGroup other)
      {
          if (ReferenceEquals(null, other)) return false;
          if (ReferenceEquals(this, other)) return true;
          return _userGroupId == other._userGroupId;
      }
  
      public override bool Equals(object obj)
      {
          if (ReferenceEquals(null, obj)) return false;
          if (ReferenceEquals(this, obj)) return true;
          if (obj.GetType() != this.GetType()) return false;
          return Equals((UserGroup) obj);
      }
  
      public override int GetHashCode()
      {
          return _userGroupId.GetHashCode();
      }
  }
  
  public class User : BaseModel
  {
      private long _userId;
      private string _userName;
      private string _password;
      private string _firstName;
      private string _lastName;
      private List&lt;UserGroup&gt; _userGroups;
  
      public User()
      {
          _userGroups = new List&lt;UserGroup&gt;();
      }
  
      public long UserId
      {
          get { return _userId; }
          set
          {
              _userId = value;
              NotifyOfPropertyChange(() =&gt; UserId);
          }
      }
  
      public string UserName
      {
          get { return _userName; }
          set
          {
              _userName = value;
              NotifyOfPropertyChange(() =&gt; UserName);
          }
      }
  
      public string Password
      {
          get { return _password; }
          set
          {
              _password = value;
              NotifyOfPropertyChange(() =&gt; Password);
          }
      }
  
      public string FirstName
      {
          get { return _firstName; }
          set
          {
              _firstName = value;
              NotifyOfPropertyChange(() =&gt; FirstName);
          }
      }
  
      public string LastName
      {
          get { return _lastName; }
          set
          {
              _lastName = value;
              NotifyOfPropertyChange(() =&gt; LastName);
          }
      }
  
      public List&lt;UserGroup&gt; UserGroups
      {
          get { return _userGroups; }
          set
          {
              _userGroups = value;
              NotifyOfPropertyChange(() =&gt; UserGroups);
          }
      }
  }
  </code></pre>
  
  <p>I will use a Devexpress GridControl to save and load user model. So I have a GridControl like this:</p>
  
  <pre><code>    &lt;dxg:GridControl ItemsSource="{Binding Users}" &gt;
          &lt;dxg:GridControl.Columns&gt;
              &lt;dxg:GridColumn x:Name="FirstName"
                              Width="10"
                              FieldName="FirstName" /&gt;
              &lt;dxg:GridColumn x:Name="LastName"
                              Width="10"
                              FieldName="LastName" /&gt;
              &lt;dxg:GridColumn x:Name="UserName"
                              Width="10"
                              FieldName="UserName" /&gt;
              &lt;dxg:GridColumn x:Name="Password"
                              Width="10"
                              FieldName="Password"&gt;
                  &lt;dxg:GridColumn.EditSettings&gt;
                      &lt;dxe:PasswordBoxEditSettings /&gt;
                  &lt;/dxg:GridColumn.EditSettings&gt;
              &lt;/dxg:GridColumn&gt;
              &lt;dxg:GridColumn x:Name="UserGroups"
                              Width="15"
                              FieldName="UserGroups"&gt;
                  &lt;dxg:GridColumn.EditSettings&gt;
                      &lt;dxe:ComboBoxEditSettings ItemsSource="{Binding UserGroups}"
                                                DisplayMember="UserGroupName" &gt;
                          &lt;dxe:ComboBoxEditSettings.StyleSettings&gt;
                              &lt;dxe:CheckedComboBoxStyleSettings /&gt;
                          &lt;/dxe:ComboBoxEditSettings.StyleSettings&gt;
                      &lt;/dxe:ComboBoxEditSettings&gt;
                  &lt;/dxg:GridColumn.EditSettings&gt;
              &lt;/dxg:GridColumn&gt;
          &lt;/dxg:GridControl.Columns&gt;
          &lt;dxg:GridControl.View&gt;
              &lt;dxg:TableView x:Name="TableViewAllEmployees"
                             AutoWidth="True"
                             NewItemRowPosition="Top"
                             ShowGroupPanel="False" /&gt;
          &lt;/dxg:GridControl.View&gt;
      &lt;/dxg:GridControl&gt;
  </code></pre>
  
  <p>Unfortunately in runtime combobox open in readonly mode and I cann't select any record form it.
  Please tell me how to enable combobox.</p>
  
  <p>In extra I use Devexpress, Caliburn in WPF project.</p>