473,842 Members | 1,547 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hide New Row in Datagridview

bplacker
121 New Member
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 13230
bplacker
121 New Member
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 Recognized Expert Specialist
One way may be to set the rowheadervisibl e to false, but I haven't tested this...
Jan 23 '07 #3
bplacker
121 New Member
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 Recognized Expert Specialist
Try setting AllowUserToAddR ows to false...
Jan 23 '07 #5
bplacker
121 New Member
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
4891
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 Forms->UsingDataGridView example They are hiding the employee ID by setting that column visibility to false, seems simple enough. But I can hide every other column in my own project, just not the first one!
4
22124
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 = false; //mobiltelefon When I run the programm, the columns are still displayed. I am developing with Visual C#2005 Express Edition Beta.
4
20296
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. My code: foreach (DataGridViewRow row in myGrid.Rows) if ((bool)row.Cells.Value.Equals(false)) row.Visible = checkbox.Checked;
2
17936
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 DataGridView. Anyone have an answer for this one? Thanks, Arthur
0
4174
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 "inizialize" the Data Grid View (add a data sorce, filled with notthing at staratup, and hide some columns) when i put a code in the txtCLCOD textbox start a searsh. If i foud something i popolate the Data grid view on the second page. Now the magic if i...
1
2705
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 autogenerated). Pls anyone help me. Thanks
0
1382
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 Reader (JAWS 8.0) to say ROW 1... instead of ROW 0, when tabbing through the cells/rows. It would be ideal if there was some property or backdoor method for me to set the DataGridView indexing at 1 instead of 0. Anyone know of such a trick? ...
3
5083
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
2313
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 possible. How is that done?
2
1921
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 grid capabilities from scratch. However, it also gives the users of my control all the functionality of the DataGridView as well and that's proving very confusing to them. What I'd like to do is expose my properties and methods while hiding those
0
9876
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9717
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10950
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10318
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9459
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7862
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5699
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5886
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4506
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.