Release of datagridviewr gridi on the change button

1

Good morning, I have a doubt, I have a datagridviwer, I have cleared the option to change the fields, and I need to do that when the user clicks on the change button I release the grid to change, how can I do this?

    
asked by anonymous 11.09.2017 / 15:23

1 answer

1

This flag only marks the element as ReadOnly , to undo this at runtime is to change this value.

For example:

private static void btLiberarBloquearGrid_Click(object sender, EventArgs e)
{
    dataGridView.ReadOnly = !dataGridView.ReadOnly;
}
    
11.09.2017 / 15:39