VagabondSW Posted November 3, 2005 Posted November 3, 2005 I am familiar with basic, brain-dead databinding, but I feel I need something a little more complex for my current application. I would like a few pointers or advice. I have a main form with a DataGrid bound to a DataView object. I have a custom control (DetailPanel), with a bunch of labels on it, that will display all the details related to the row selected in the DataGrid. How do I go about making sure the Labels on the DetailPanel display information related to the row currently selected in the DataGrid? I know how to create Binding objects on the DetailPanel that *should* display the appropriate column of data in the appropriate Label (an assumption at this point): Dim bindText As New Binding("Text", Me.DataSource, "myTable.myColumn") Label1.DataBindings.Add(bindText) Now, what do I need to link the Main Form and the custom control? Do I need a CurrencyManager? Two CurrencyManagers? Something else entirely? Any help or direction is greatly appreciated. Quote "Never ascribe to malice that which can adequately be explained by incompetence." -- Napolean Bonaparte
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.