Solved

Disable add new row DataGridView

Posted on 2009-04-02
2
3,595 Views
Last Modified: 2013-12-14
Hi,

While populating a DataGridView I notice there's a * sign @ the last row of the data.
I want the user to edit only what is inside the DataGridView but not adding a new line.
Is that possible?

Thanks for any help in advance.
0
Comment
Question by:csharp_learner
2 Comments
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 400 total points
Comment Utility
On the control's smart tag, clear the Enable Adding and Enable Deleting check boxes.
0
 

Author Comment

by:csharp_learner
Comment Utility
In Properties: AllowUserToAddRows to False
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

763 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

11 Experts available now in Live!

Get 1:1 Help Now