Solved

blank line at end of data in datagrid

Posted on 2009-04-02
7
301 Views
Last Modified: 2012-05-06
when I load a datagrid using vb.net in a form from data in a database, there is always an extra line at the bottom of the grid (to add more data I presume) .  How do you not display this extra line?
0
Comment
Question by:ddepuemd
  • 2
  • 2
7 Comments
 
LVL 48

Accepted Solution

by:
jpaulino earned 250 total points
Comment Utility
You can do:

Me.DataGridView1.AllowUserToAddRows = False
0
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
If you do not want the user to be able to modify cell values, set the ReadOnly property of the grid to be True.
0
 
LVL 48

Expert Comment

by:jpaulino
Comment Utility
My anwser was the correct for the asked question. The accepted answer was just a comment.
0
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
This is not fair. My answer was already selected. It was not a comment but rather a more complete solution. Why is it being messed up now?
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

10 Experts available now in Live!

Get 1:1 Help Now