How to delete rows from a datagridview

2

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

    
asked by anonymous 21.08.2017 / 13:15

1 answer

1

To hide the line of adding new rows, it goes into the properties of datagridview and Set

  

AllowUserToAddRows = false;

    
21.08.2017 / 14:13