One more question to DataLink

One more question to DataLink

Postby 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
Zero-G.
 
Posts: 390
Joined: Sat 09 Dec 2006 12:20

Postby 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.
Alexey.mdr
 
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Postby 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
Zero-G.
 
Posts: 390
Joined: Sat 09 Dec 2006 12:20

Postby Alexey.mdr » Thu 14 Feb 2008 13:57

Not at all.
We are glad that the problem is solved!
Alexey.mdr
 
Posts: 729
Joined: Thu 13 Dec 2007 10:24


Return to dotConnect for MySQL