I hope I understood your question. A few simple ways of doing this:
Adding a repository item to each column and handle the
ShowingEditor
event, usinge.Cancel
if this is supposed to be read only.Popping up a window/textboxes, letting the user insert values and add the row with values already inserted via code.
assigning two different repository items to the same column using
gridView.CustomRowCellEdit
event. like such:RepositoryItemTextEdit rep = new RepositoryItemTextEdit(); RepositoryItemTextEdit noRep = new RepositoryItemTextEdit(); noRep.ReadOnly = true; private void button1_Click(object sender, EventArgs e) { gridView1.AddNewRow(); justAddedName = true; gridView1.RefreshData(); } private void gridView1_CustomRowCellEdit(object sender, DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventArgs e) { if (e.Column == colname) { if (e.RowHandle == gridView1.RowCount - 1 && justAddedName) { e.RepositoryItem = rep; } else { e.RepositoryItem = noRep; } } }
It's not complete, just a direction to explore.
Hope I helped.