RepositoryItemColorEdit throws validation error "Object must implement IConvertible"

  1. 1. Specify the Color data type for the "Color" column:
  2. dt.Columns.Add("Color", typeof(Color));
  3. 2. 2. If you need to store colors as integer values, just enable the corresponding option in RepositoryItem: set the
    RepositoryItemColorEdit.StoreColorAsInteger property.
  4. RepositoryItemColorEdit edit = new RepositoryItemColorEdit(); edit.StoreColorAsInteger = true; gridView1.Columns["Color"].ColumnEdit = edit;