Solved

blank line at end of data in datagrid

Posted on 2009-04-02
7
303 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
ID: 24048164
You can do:

Me.DataGridView1.AllowUserToAddRows = False
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 24049038
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
ID: 24057900
My anwser was the correct for the asked question. The accepted answer was just a comment.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 24066553
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

914 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

15 Experts available now in Live!

Get 1:1 Help Now