Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DataGridView Last Row

Posted on 2006-06-21
2
Medium Priority
?
468 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Integration Management Part 2
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

885 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