views:

144

answers:

2

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.

+1  A: 

Set AllowUserToAddRows to false

Thomas Levesque
Absolutely what i was looking for
JustSmith
A: 

Set ReadOnly = true and all the edit features (including new rows) will be hidden. For more granularity, look at the AllowUserTo* properties.

Marc Gravell