Solved

blank line at end of data in datagrid

Posted on 2009-04-02
7
310 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

728 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