ComboBox bind data problem

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2006
Posts: 7
Reputation: ohohling is an unknown quantity at this point 
Solved Threads: 0
ohohling ohohling is offline Offline
Newbie Poster

ComboBox bind data problem

 
0
  #1
Aug 30th, 2006
Name: |textbox| ' data bind from table 1

Type: |ComboBox| 'datasource is from table 2 but databind is from
table 1

above is 1 part from my form. i doing add, update, and delete data to the form. after i add data i will close the form, if user going to update the data they have to key in ID then name and type will get data by bind menthod...

the problem i fetch now is... i get the data source from table 2 for user to update... but the orginal data add by user cannot show correctly in the form...it will always display the 1st item in the combobox that from datasource...

example...
type datasource contain...
1. aaa
2. bbb
3. ccc
4.....
....

but that say
ID: 001
name : ABC
type : ccc

when i find data to update by key in 001
inside the form
name textbox is ABC and
tyep ComboBox should be ccc...

but i always get aaa....means the 1st item from datasource...
how i solve this...

thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC