Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# relational dataset

Status
Not open for further replies.

budjo

Programmer
Mar 4, 2004
19
PH
Hi, i have two tables .. they are supposed to be related by a Columnid = ContractorID here's the structure:

Gloves Contractor
GloveID ContractorID
ContractorID ContractorName
GloveDesc

*using MYSQL

-- Im using windows form, i can easily add new records , with a textbox and a combobox for Glovedesc and ContractorName resp. , GloveID is autoincrement


I have a navigate button , last,next,prev,first on the form, my problem is how to sync the Gloves Record with the Contractor Record, i tried add DataRelation on the Dataset, but when i click the nav buttons, only the Gloves Table is navigated, Contractor Table remains at position 0

im using one Dataset for the two tables ...

my work around was to get the current value of contractorid from the current record in the Gloves Table and do a .rowfind() on the Contractor Table, I can find the datarow but , dont know how to get the position of the datarow found and used it to change the current position of the Contractor Table , any suggestion?? plss .. tnx in advance ..

 
budjo,
How does your navigation code look?

JC

Friends are angels who lift us to our feet when our wings have trouble remembering how to fly...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top