I was attempting to build a proof of concept with little success. I'm unable to get controls to work with databinding (with the exception of setting the datasource on a datagridview, but even the standard databinding to the datagridview.tag does not update when filtering the source tableView).
There are 2 button controls on the form bound as such (with the tag associated with the tableView tag values, and text to text):
Both buttons are bound to text and tag values from the tableView2 object, which has a lookup table data provider that resides in a global container.
The automation seen below simply populates the lookup table with several test values, and implements the changing of the row filter (hard-coded into the combobox as Key1 to Key5).
Initial Load (No row filter, no bound button controls updated):
After row filter (no bound button controls updated):
I would expect the buttons below the combobox to be updated with that row's defined text and tag values (as defined in the databindings on the properties of that control). I have tried using rowfilter and filter properties, both will update the datagridview with the correct row, but neither update the bound control properties.
Does RDA support control data binding? Any guidance would be appreciated!
I couldn't get it to work using the DataBindings on the control properties grid either. I suspect it may be because of the DataSource Update Mode not triggering the update. I was able to get it work however. It required writing an automation to reset the bindings each time the table view row filter was updated. Here are the 2 automations that do the trick.
As always, thanks for the help. It worked like a charm, but I did some additional testing. It turns out, I didn't need to call ResetBinding each time the filter changes, only once during Runtime. So it seems the initial property edit / early binding is just not applying to the control and needs to be added during runtime!
Thanks for that catch. I was seeing some behavior that would indicate what you found, but didn't check it out. By the way if you want to set other properties besides Text, just send that property name with a value to ResetBinding.