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