Solved

DataGridView Last Row

Posted on 2006-06-21
2
462 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# bracket error 3 36
Hey!!!! 1 25
How to Generate a Method from a keyboard shortcut in Visual Studio? 2 19
IEnumerable<T> to a List<T> 8 37
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 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