473,498 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataGrid, great problem

my datagrid, e.g store (1)Prodcut id (2) product name (3)unitprice)
I found a great problem under the following case:-

row(1) User keyin the data, Press Save, i can save the content.
I design some function to bring the default item e.g (F3)-product id will
become "TOYS", and unitprice is $50.00
now, for a new row(2), if use didn't keyin anyting, and just use my shortcut
key.
It cannot save in the dataset . Why ???
if i key in something in row(2), I will see a new row in row(3) . and I CAN
save the record.
If i didn't key anything , there is now new row in row(3) , and i can't save
anything.

Please help ~
Nov 21 '05 #1
1 952
I solve the problem by
Dim myRow = myTable.newrow()
myrow("productid") ="TOYs"
mytable.row.add(myRow)

"Agnes" <ag***@dynamictech.com.hk> ¼¶¼g©ó¶l¥ó·s»D:O9****************@TK2MSFTNGP15.phx .gbl...
my datagrid, e.g store (1)Prodcut id (2) product name (3)unitprice)
I found a great problem under the following case:-

row(1) User keyin the data, Press Save, i can save the content.
I design some function to bring the default item e.g (F3)-product id will
become "TOYS", and unitprice is $50.00
now, for a new row(2), if use didn't keyin anyting, and just use my
shortcut key.
It cannot save in the dataset . Why ???
if i key in something in row(2), I will see a new row in row(3) . and I
CAN save the record.
If i didn't key anything , there is now new row in row(3) , and i can't
save anything.

Please help ~

Nov 21 '05 #2

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

Similar topics

3
1711
by: EMW | last post by:
How can I put everything that is in a datagrid into a SQL server database (which should be readable by an PocketPC program)? There is probably a simple solution for it, but as always it is...
2
1838
by: PAUL GROSSMAN | last post by:
Hello everyone. I am working with a DataGrid using VB .Net (Windows Forms). I want to make one of the columns un-editable. I was able to do that by setting the ...
2
945
by: DelphiBlue | last post by:
I have a Nested Datagrid that is using a data relations to tie the parent child datagrids together. All is working well with the display but I am having some issues trying to sort the child...
0
1417
by: Chankama | last post by:
Hi. I am attempting to display the contents of a database table on a CE device. I was using a DataTable object, as the datasource of the DataGrid, to accomplish this task. The problem with this...
6
3299
by: Alpha | last post by:
I have several textboxes that I need to chang the text when the selection row is changed in a datagrid. I have the following code. This textbox displayes the initial selection but when I click on...
2
2314
by: Sky | last post by:
Hello: Another question about trying to wring functionality from a DataGrid... Have a DB table of "Contacts" -- 14 or more fields per record Show in datagrid -- but only 5 columns (First,Last,...
3
1793
by: nkunkov | last post by:
Hi, I have read a lot of articles in this newsgroup about how to solve this problem but found no solution. I'm trying to export a C# datagrid to Excel file. Here is my code that I have also...
2
1769
by: tshad | last post by:
I have a Datagrid that has no rows in it, but I want the title to show, and they aren't. Is there a way to make them visible even if the Datagrid is empty? Thanks, Tom
4
1813
by: Steve | last post by:
I am fairly new to VB.NET, and I am rewriting an application I wrote a while back, also in VB.NET. I aplied some new things I learned. Anyway, here is my problem....... I have a custom DataGrid...
3
2608
by: simchajoy2000 | last post by:
Hi, I have been working with datagrids a lot in the past two weeks and I am running across a lot of problems. Maybe there is no way around these problems but I hope there are and someone out...
0
7125
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
7165
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
7205
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...
1
6887
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
5462
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,...
0
4590
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
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...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
291
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.