C# – How to remove the edit line at the bottom of a DataGridView


I am using a DataGridView in a UI because of how easy it is to bind to a source like a DataTable. The only problem I have is that it is intended to be read only and therefore I don't need the edit line that always shows up at the bottom of the grid rows. I have looked around and can't see a way to turn it off. Dose anyone know of a way to remove it?

The edit line is the one at the bottom of the table with the triangle and the star in the column all the way in the left column.

Best Solution

Set AllowUserToAddRows to false