Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

"Never ascribe to malice that which can adequately be explained by incompetence." -- Napolean Bonaparte

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...