How to enable a cell of a datagridview?

0

query, I have a datagrid with an edit button, I want to click on it to enable me certain cells, not all, how could I do it?

My code so far:

 if (datagridview1.CurrentRow != null)
                    datagridview1.CurrentRow.ReadOnly = false;
    
asked by Alex Varela 03.01.2018 в 19:06
source

1 answer

2

You can enable / disable the editing of individual cells by changing the value of the ReadOnly property of the cells:

datagridview1[numColumna, numFila].ReadOnly = false;
    
answered by 03.01.2018 / 19:22
source