Prior to 9.2 I used the EditorControlResolved method on a grid cell to obtain the control I needed to pass to obtain & set ValidationSettings. Starting with 9.2 this method has been depreciated and (per the message) should be replaced with EditorComponentResolved.
I'm trying to determine how best to find the same editor control from the editor component. I dont see a Control property on the component returned (or perhaps I missed it). Is there some way through the component to get what I need here or perhaps a better way?
Thanks
Hi Neil,
Unless you are using the UltraContainerEditor, which is a component, or you are creating your own editor which is not a control, you can simply case the EditorComponent into a Control.
Hi Mike,
Just so I'm clear, are you saying that instead of the following
ValidationSettings
settings = cellValidator.GetValidationSettings(entryGrid.ActiveCell.EditorControlResolved);
I should be using
settings = cellValidator.GetValidationSettings(entryGrid.ActiveCell.EditorComponentResolved as Control);
ThanksNeil
Yes, that is correct.