Solved

blank line at end of data in datagrid

Posted on 2009-04-02
7
309 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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