473,396 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Using DataGridViewCheckBoxColumn in DataGridView

Hi all,

I´m using a System.Windows.Forms.DataGridView which first column is a DataGridViewCheckBoxColumn (.NET 2.0).
My DataGridView is enabled to insert new rows. When a check the DataGridViewCheckBoxColumn in the new row, the DataGridView add a new row with all others columns with blank value.
I need to disable the add new row only when I check the DataGridViewCheckBoxColumn. Is it possible?

Thanks,

Mauricio.
May 16 '07 #1
1 5563
hi
i found similar problem earlier..finaly i found solution.
i hop this will help u out.
go to design part and select datagridview
u can find small icon at top right corneragainst datagridview.datagridview task will open, when u click it.
then u unchecked "anable adding". then row should nt add to datagrid.


thanku









Hi all,

I´m using a System.Windows.Forms.DataGridView which first column is a DataGridViewCheckBoxColumn (.NET 2.0).
My DataGridView is enabled to insert new rows. When a check the DataGridViewCheckBoxColumn in the new row, the DataGridView add a new row with all others columns with blank value.
I need to disable the add new row only when I check the DataGridViewCheckBoxColumn. Is it possible?

Thanks,

Mauricio.
Dec 7 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Bill | last post by:
I have an unbound DataGridView with a DataGridViewCheckBoxColumn as column 2(configured in the designer). How would I programatically set the checkbox state in, say, row 3 column 2? I need to do...
0
by: Brian | last post by:
I've got a datagridview with a bound dataset. I also added an unbound checkbox column. I can check the box when I run the application with the mouse but can't seem to set the checkbox through the...
2
by: bob | last post by:
Can anyone tell me the best way to update a dataset while it is being edited/viewed in the DataGridView control? Is this something that should be inserted into one of the grid's events? or should...
4
by: gene kelley | last post by:
I had a VB6 app that used a third party ListView control to simply display various recordsets. The control had a VirtualMode which I used for this display. Now in VB2005, I want to do the same...
0
by: Sunday Oke | last post by:
hello I have a datagrid view with a DataGridViewCheckBoxColumn, and all I'm trying to do is use the "CellContentClick" toggle the check box on and off (or checked and unchecked) So far I...
2
by: Steve Richter | last post by:
what is the best way to use DataGridView to view data from large database tables? Where the sql select statement might return millions of rows? string connectionString =...
0
by: news.microsoft.com | last post by:
Hi, I am having problem using "DataGridViewCheckBoxColumn" in my project. The function dgvCheckBox_Clicked is called when CheckBox in DataGrid is clicked ( checked or unchecked). ...
12
by: G.S. | last post by:
Is it acceptable to use { } blocks to improve readability and maintainability of the code? Example: //add the checkbox column DataGridViewCheckBoxColumn column = new...
1
OuTCasT
by: OuTCasT | last post by:
Hi, i have a checkbox column in a datagridview. when i select it i want that rows data to move into a listbox. i did that like this Private Sub DataGridView1_CellContentClick(ByVal sender As...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.