Solved

Disable add new row DataGridView

Posted on 2009-04-02
2
3,599 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

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 describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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 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…

680 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