473,396 Members | 1,966 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.

Extra row in DataGrid?!?

Whenever I display data from a dataset in my DataGrid (whoa, that's a lot of
"datas" :-D), there's always an extra blank row at the bottom, which when
clicked on, puts "(null)" in every single cell of the bottom row. Is there a
way to fix that? Thanks.
Nov 20 '05 #1
2 1648
Dim cm As CurrencyManager = CType(BindingContext(Grid.DataSource,
Grid.DataMember), CurrencyManager)
CType(cm.List, DataView).AllowNew = False
dominique

"jy836" <mo***@nospam.com> wrote in message
news:dyfQb.130873$I06.1142069@attbi_s01...
Whenever I display data from a dataset in my DataGrid (whoa, that's a lot of "datas" :-D), there's always an extra blank row at the bottom, which when
clicked on, puts "(null)" in every single cell of the bottom row. Is there a way to fix that? Thanks.

Nov 20 '05 #2
"Dominique Vandensteen" <domi.vds_insert@tralala_tenforce.com> wrote in
message news:Oy****************@TK2MSFTNGP10.phx.gbl...
Dim cm As CurrencyManager = CType(BindingContext(Grid.DataSource,
Grid.DataMember), CurrencyManager)
CType(cm.List, DataView).AllowNew = False
dominique


It worked. Thanks!!!
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brian Greiwe | last post by:
I posted this in the datagrid forum but got no bites, so I thought I'd post it here as well for some help.... I've created a datagrid with 1 edititemtemplate column. When the user clicks...
1
by: Stephen | last post by:
I have a really annoying problem with a datagrid. I have an application which populates a datagrid on the onclick event of a button. The datagrid is bound to an ArrayList which holds the values. ...
0
by: Moti | last post by:
Hi all I connect DataGrid with table: dataGrid1.DataSource = dataSet.Tables.DefaultView; There always an extra row, How can I delete it? or can I control this row? Moti
2
by: Nick | last post by:
In VS 2003 and VS 2005 beta 2 I am trying to write a simple program. It has a datagrid and a textbox along with a menubar. There is a command in the menu bar which is "Run Query" and has the...
0
by: pei_world | last post by:
I am using the following code to configurate my datagrid and load data from my Pocket Access Database. however, I got some more row extra, and it is the number I setted with my object array in my...
6
by: Moti | last post by:
Hi all I connect DataGrid with table: dataGrid1.DataSource = dataSet.Tables.DefaultView; There always an extra row, How can I delete it? or can I control this row? Moti
0
by: Jim Heavey | last post by:
Hello, I am trying to figure out how to add an extra row of heading to my datagrid. I came up with the following code: Public Sub dgNewMovies_ItemCreated(ByVal sender As Object, ByVal e As...
3
by: AMD Desktop | last post by:
Hi, I need to add a header to a datagrid. This is the code I am trying to use: Dim dgStaffingReport As New DataGrid Dim dgitem As New DataGridItem(0, 0, ListItemType.Header) Dim mycell...
2
by: saleek | last post by:
I was wondering if there is a way I can add an extra header to a datagrid? I found this solution on the internet - but it seems quite old and didn't work for me. ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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
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.