One more question to DataLink

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

One more question to DataLink

Post by Zero-G. » Wed 13 Feb 2008 20:34

Hey

I use VB.NET 2005 and your latest controls

I don't get my project working with the DataLink...
So, I do have a Panel with two UserControls. The UCtrl will be loaded in the Load Event from the panel
Let's say on UCtrl = Basic and the other = Data.
On the Basic UCtrl I do have a DataGrid, DataSet (Provider Specific), DataAdapter & DataLink. Also I have a few Textboxes, which are linked to the DataLink
In the DataCtrl I have also a DataLink from the Basic UCtrl's DataSet. - Also bound to a few TextBoxes.

In the Sub New Event of the UCtrl Basic, I use the following code:

Code: Select all

        MySqlDataAdapterKundenstamm.Fill(Me.DtsKundenstamm)
        KundenstammLink.Position = -1
The Background is, that after the Controls are displayed to the user, the user should see all entries of the DataSet in the grid. - But the KundenstammLink (DataLink) shows the first entry to the textboxes. - How can I let the Textboxes "clear" - Till the user handles the DataGrid?

Hope you understand my problem

Thanks

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Thu 14 Feb 2008 13:35

Unfortunately, we couldn't help you from the first glimpse.
Please send me a small test project to reproduce the problem.
It is desirable to use 'test' schema objects, otherwise include the
definition of your own database objects.
Do not use third party components.
If it is impossible for you to create the test project, send us a piece of
your code where the error occurs.

Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

Post by Zero-G. » Thu 14 Feb 2008 13:42

Thanks

I think, I found out, what the problem was. - I haven't set the DataLink's to Syncronisized = True.

Now I did it, and it seems to work fine.

THx

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Thu 14 Feb 2008 13:57

Not at all.
We are glad that the problem is solved!

Post Reply