For Programmers: Free Programming Magazines  


Home > Archive > MSDN > January 2005 > selecting row problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author selecting row problem
Hendrik Jan

2005-01-11, 8:55 pm

Hi,

I'm new to VB.Net so propabally I do something totally wrong.
On my form I have a textbox (txtVoornaam) and I set the databinding
properties at designtime in the property palette to a field in my dataset.

txtVoornaam.Text = dsAdressen.Personen.Voornaam

Now I search in the table Personen with the PK for a specific record. The
record is found but the textbox doesn't show the value found. For finding the
record I used:

dsAdressen.Personen.FindByPersoonsID(PK)
or
dsAdressen.Personen.Rows.Find(PK)

Because the textbox is bound I expected that the textbox should automatic
show the found value.
Where am I going wrong?

Thanks.
Hendrik Jan
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com