public override DataControlFieldsEditor.FieldItem CreateField() { BoundField runtimeField = new BoundField(); string name = string.Empty; if (this._fieldSchema != null) { name = this._fieldSchema.Name; } if (!this._genericBoundField) { runtimeField.HeaderText = name; runtimeField.DataField = name; runtimeField.SortExpression = name; } if (this._fieldSchema != null) { if (this._fieldSchema.PrimaryKey) { runtimeField.ReadOnly = true; } if (this._fieldSchema.Identity) { runtimeField.InsertVisible = false; } } DataControlFieldsEditor.FieldItem item = new DataControlFieldsEditor.BoundFieldItem(this._fieldsEditor, runtimeField); item.LoadFieldInfo(); return item; }