I need to put the lines of my GridView
as read-only.
That is, I have a GridView
that already contains some data, this data can not be edited, however I can add new lines, and these new lines can be edited.
But I'm using the XtraGrid
component of DevExpress, version 16.1
private void button4_Click(object sender, EventArgs e) // botao editar
{
editar = 1;
readonly_false();
gridLookUpEdit1.ReadOnly = true;
int linhas = gridView5.RowCount;
for(int i = 0; i <= linhas; i++)
{
// codigo para colocar as linhas como readonly = true.
}
}
Does anyone have any ideas?