Solved

Disable add new row DataGridView

Posted on 2009-04-02
2
3,597 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
ID: 24056405
On the control's smart tag, clear the Enable Adding and Enable Deleting check boxes.
0
 

Author Comment

by:csharp_learner
ID: 24056473
In Properties: AllowUserToAddRows to False
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

831 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