StrataFrame Forum

Data binding in Information Panel

http://forum.strataframe.net/Topic13661.aspx

By Chan - 1/23/2008

Hi,

I dropped BO which same as defined to BrowseDialog on InformationPanel, and set control data binding. It doesn't seem like the BO is "translated" to InfoPanel.



Any ideas?



Thank you
By Trent L. Taylor - 1/23/2008

It doesn't seem like the BO is "translated" to InfoPanel.

There is no translation that takes place when using the InfoPanel.  The business object is passed over in the RowChanged event of the InfoPanel which gives you the BO (already set to the correct record) that has been selected from the results list in the browse dialog.

By Chan - 1/23/2008

Hi,

Do you meant the only way to display info at info panel is to assign value to control.text programmatically in rowchanged event? Design time data binding is not supported?
By StrataFrame Team - 1/24/2008

Correct, there is no design-time data-binding for the InfoPanel classes... it's all handled through the RowChanged event.  If you want, you can use a BindingSource (the regular .NET one) to bind all of the controls and within the RowChanged event, just set the bindingSouce.DataSource = e.BusinessObject.