Release of the datagridi dviewr gridi on the change button

Asked

Viewed 36 times

1

Good morning, I have a question, I have a datagridviwer, I unchecked the option to change the fields, and I need to do that when the user clicks the change button I free the grid for change, how can I do this? inserir a descrição da imagem aqui

  • "I unchecked the field change option" How did you do it?

  • I put the image to show, now I need to enable editing when clikar on change button.

  • Okay, look at my answer.

1 answer

1


That one 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;
}
  • Perfect thank you very much was just what I needed Vlw

Browser other questions tagged

You are not signed in. Login or sign up in order to post.