473,408 Members | 2,888 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,408 software developers and data experts.

Hide New Row in Datagridview

bplacker
121 100+
Is there a way to hide the last row, the one with a *, which is there to represent a new row? I figured there would be a property to set to false, but I haven't found anything. anyone know?
Jan 22 '07 #1
5 13195
bplacker
121 100+
Also... I tried to hide it via brute force, by making the last row of the grid not visible, and I got the following error message:

Uncommitted new row cannot be made invisible.
Jan 22 '07 #2
kenobewan
4,871 Expert 4TB
One way may be to set the rowheadervisible to false, but I haven't tested this...
Jan 23 '07 #3
bplacker
121 100+
That does make the grid more aesthetically pleasing, to me, but it does not remove the last row. The only reason I'm having a problem with this, it because I format some of the columns, such as currency or date/time formats. So on the Currency fields, a value of 0.00 comes up in the new row, which will just confused people.
Jan 23 '07 #4
kenobewan
4,871 Expert 4TB
Try setting AllowUserToAddRows to false...
Jan 23 '07 #5
bplacker
121 100+
haha yea.. i finally figured that out yesterday. I always do that and somehow I forgot to, and completely forgot about that property. thanks!
Jan 24 '07 #6

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

Similar topics

0
by: Greg Burns | last post by:
I cannot hide the first column of my DataGridView. (VS.NET 2005 RC1) If you take a look at the sample from here http://lab.msdn.microsoft.com/vs2005/downloads/101samples/default.aspx Windows...
4
by: Stropher | last post by:
I have the following: this.dataGridViewBill.DataSource = tblResult; //hide the following columns this.dataGridViewBill.Columns.Visible = false; //email this.dataGridViewBill.Columns.Visible =...
4
by: osmarjunior | last post by:
When I try to make the current row invisible, I got an error. I put a checbox that turns some rows visible/invisible. Then if the selected row is turning to invisible, it raises an exception. ...
2
by: autenzio | last post by:
I want to use alternating row colors in my DataGridView object and I also want to turn off grid lines. This is possible in the DataGrid class, but I can't seem to find a way to do it in the...
0
by: Gian Paolo | last post by:
this is something really i can't find a reason. I have a form with a tabcontrol with tree pages, in the second page there is a Data GRid View. Plus i have a class. When i open the form i...
1
by: ashik478 | last post by:
Hi! I have a problem. I have a table in oracle database with one field is primary key. Now I want to insert data from Datagridview with hide column which contain not null field(this field is...
0
by: RickPowell | last post by:
I am writing a WinForm application in C#, .NET Framework 2.0, Visual Studio 2005. It must be Section 508 compliant; i.e. ACCESSIBILITY features on. My main tester, a blind person, would like his...
3
by: =?Utf-8?B?U3RldmVU?= | last post by:
Is it possible with VS 2005 to hide a row within a datagridview based upon the "true/false" status of another boolean property within the datagridview? -- ----------- Thanks, Steve
1
by: TonyJ | last post by:
Hello! Assume I have a datasource consisting of a database table. This table has 5 column. If I now want to use a bound datagrid but want to display only 4 of these 5 columns is that...
2
by: Steve Barnett | last post by:
I've got a calendar control that extends the DataGrid View: public class Calendar : DataGridView This gives me all the functionality I need for my calendar without the hassles of writing the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.