We help IT Professionals succeed at work.

How to get rid of the Edit Row (lowest row) in a DataGridView

jrscherer
jrscherer used Ask the Experts™
on
I use a DataGridRow in VB2005. It works great.
I edit programmatically all cells, so I don't need the edit row, the one with the * in the row header.
How do I get rid of this at run time?
Jack.net
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
I beleive you just set AllowUserToAddRows to False, you might also want to sett AllowUserToDeleteRows to False also
datagridview1.rows.removeat(datagridview1.rows.count-1)

Author

Commented:
Vaxman2,
This is exactly what I was looking for. Thnx Jack.net