Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
320
How to get the UltraGrid cell or row for an UltraDropDown instance
posted

I need to dynamically set a column in an UltraDropDown based on a value in the UltraGrid row from which it is being dropped. In other words I want to get a reference to either the UltraGridRow or the UltraGridCell which was clicked on, to use in the InitializeRow event of the UltraDropDown.

 It isn't an parent control and I can't seem to find any combination of UIElements which would help out.

Things like

UltraDropDown u = UltraDropDown(sender);

UIElement element = u.DisplayLayout.UIElement;

element.GetAncestor(....... GetContext(.

 None of the above lead anywhere. Other than a hoaky getting a client by assuming the point is above the dropdown and using something like ElementFromPoint, does anyone have any way to get the UltraGrid row or cell dropping down the list?

 

Hmm after posting this, I realized that the cell and row should be active, so I should be able to get them indirectly. Be better of course if there was a more direct way.

 

 

Parents Reply Children
No Data