One more question to DataLink
Posted: 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:
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
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
Hope you understand my problem
Thanks