2
I need to put the lines of my GridView
as read-only.
I mean, I have one GridView
which already contains some data, this data cannot be edited, but I can add new lines, and these new lines can be edited.
But I’m using the component XtraGrid
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 idea?
This solution would work if I were using the . net components, but I am using the Devexpress components. o
GridView
Devexpress does not contain the methodRows
. Thank you.– Thomas Erich Pimentel
Good, remove . NET tag
– Marco Souza
Done. Sorry
– Thomas Erich Pimentel
@Thomaserichpimentel, edited .
– Marco Souza
I don’t understand, I need to put in readonly only only the lines that already exist in the
GridView
, however, more lines can be added, and these have to be editable, ie,ReadOnly = false
, I did not understand how this method can help me, I will edit the question, to make it clearer, edited question– Thomas Erich Pimentel