Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 26th, 2003, 05:25 PM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default listBox +Update problem

Hi,

I am using project Ch18Ex01 from the C#'s book version 1.

There is an 'Update' button which updates the data in the database, but I have a problem, depending on how I am using it.
I have only changed one thing: display the contact Name instead of the customer ID in the list box.

Here is what I did:

1) go to the first item

2) change his contact name und click update

3) click on item 2 (the field is updated in the listbox.

4) click on item 1

5) change his contact name again and click update

--> the contact name of items 1 and 2 are modified in the listbox

What is wrong ?

And how can I update a record ?

if I change a field, click update and quit the application, the field has not the new value when I reopen it. I have to first go to an other item and then click 'update'.

Anybody can help me ?

Thanks a lot!

Daniel






Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiselect listbox selction and update table Suresh62 Access 58 January 2nd, 2008 08:39 AM
Listbox Problem Brendan Bartley Access 4 November 26th, 2007 01:34 PM
Listbox problem when insert or update hcanales ASP.NET 1.x and 2.0 Application Design 1 September 21st, 2006 02:53 PM
How to Update a Listbox on Different Form boxwalah C# 2 February 24th, 2006 12:22 PM
loop through listbox and update record stoneman Access 1 August 5th, 2005 03:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.