Solved

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

Posted on 2006-10-28
3
190 Views
Last Modified: 2010-04-23
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
Comment
Question by:jrscherer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
Vaxman2 earned 500 total points
ID: 17827922
I beleive you just set AllowUserToAddRows to False, you might also want to sett AllowUserToDeleteRows to False also
0
 
LVL 10

Expert Comment

by:gangwisch
ID: 17829086
datagridview1.rows.removeat(datagridview1.rows.count-1)
0
 
LVL 9

Author Comment

by:jrscherer
ID: 17830981
Vaxman2,
This is exactly what I was looking for. Thnx Jack.net
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question