How to delete lines from a datagridview

Asked

Viewed 172 times

2

I am developing a program in C# and would like to know how I can block/delete an sql line in datagridview. The line I wanted to delete/block is the last one selected in the print, I wanted to know if it is possible to block or delete because of to write on this line. I can’t use the enable=false; because when I click on datagridview he writes in the textbox what is selected

inserir a descrição da imagem aqui

  • Try to set the property Allowusertoaddrows = false;

1 answer

1


To hide the addition line of new lines, go to the properties of datagridview and Set

Allowusertoaddrows=false;

Browser other questions tagged

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