[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • Last Modified:

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

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
0
jrscherer
Asked:
jrscherer
1 Solution
 
Vaxman2Commented:
I beleive you just set AllowUserToAddRows to False, you might also want to sett AllowUserToDeleteRows to False also
0
 
gangwischCommented:
datagridview1.rows.removeat(datagridview1.rows.count-1)
0
 
jrschererAuthor Commented:
Vaxman2,
This is exactly what I was looking for. Thnx Jack.net
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now