Is it possible to bind the SharedProps.Enabled property of a button that resides on a toolbar to a property of the active row of a UltraWinGrid that's on the same form? I want a button to be automatically enabled or disabled depending on the row selected.
Hi,
How do you capture a specific button on the toolbar so you can enable or disable it?
Eg - I have 3 buttons on the toolbar and the second one should be enabled or disabled based on the result of a boolean function exposed in a controller.
I am using the AfterRowActivate event as suggested above, and when the event is fired I pass through the current collection of selected items in an ultragrid to a controller function. The function assesses the collection and returns true or false based on some business logic. So, if the function returns false I want to disable the second button or enable it if the result is true.
Does that make sense??
I just wanted to know if you was able to solve this using Mike's suggestions or you still need help? Just let me know. Thank you.
Sincerely,DimiDeveloper Support Engineer, MCPD Infragistics, Inc.
I think you can only bind to a property directly off of a control, and since the tool is not a control, I don’t see how this could possibly work. It’s easy enough to just handle the AfterRowActivated event in the grid and set the enabled state on the tool, though.