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;
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;
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;