PC Review


Reply
Thread Tools Rate Thread

Database Update Problem

 
 
=?Utf-8?B?UGFydmVlbg==?=
Guest
Posts: n/a
 
      21st May 2004
I have a column called PositionNumber in my grid. There
is also a button on my grid called "Renumber Positions."
When a user clicks on this button the value of PositionNumber
in all rows changes. This change is made through code by doing
grd(intRow, intCol) = <new value>.

The change appears in the grid and I save my changes through
a data adapter. But when I look at this data in the database
or even when I reload this data back into the grid, I still
see the old values. I even checked to see if the da.Update
method updates the right number of records and it does

But why isn't this change showing up the database??

Another thing I noticed is that if I manually go through the
grid and make changes to this column then I will see the new
values in the database, but not if I do it through code..
does anyone know why this happening??

Any help is greatly appreciated

Thanks
Parvee

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGFydmVlbg==?=
Guest
Posts: n/a
 
      21st May 2004
Whoops!! This is a double post! Sorry...
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: SP2 Database Update problem Stuart Langley Windows XP Embedded 0 14th Dec 2006 11:02 PM
Problem with Update Query - will not update database Elmo Watson Microsoft Access 8 8th Mar 2006 04:06 AM
Update to database problem =?Utf-8?B?Um9u?= Microsoft Dot NET 0 2nd Mar 2005 10:23 PM
XPe SP2 Database Update Problem =?Utf-8?B?SmVmZiBDbGVnZw==?= Windows XP Embedded 4 30th Jan 2005 02:45 AM
Database Update Problem Harrison N. Microsoft ADO .NET 7 19th May 2004 02:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:53 PM.