Solved

DataGridView Last Row

Posted on 2006-06-21
2
459 Views
Last Modified: 2010-04-16
I am adding rows to a DataGridView and there is always an empty row at the end of the data.  How can I stop the empty row from appearing?
0
Comment
Question by:Rowdyone52
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 16956204
this.dataGridView1.AllowUserToAddRows = false;

Bob
0
 
LVL 11

Expert Comment

by:anyoneis
ID: 16957486
Bob has given you the answer. Note it is also possible to clear th e"Enable Adding" checkbox on the DataGridView Smart Tag in design view - it sets the exact same property.

David
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now