Hi,
Based on a value from a different cell, i need to change the way data is entered in a cell: free text or a text selected from a combo. Is this achievable, and if it is, how can it be done?
I have tried, in BeforeEnterEditMode event, to set the EditorComponent to the combo or to null, but I get and InvalidException "Can't access SelectionStart unless the Editor is in edit mode." The full stack trace can be found in the attachment.
Thanks.
Emanuel
Hi Mike,
Using the BeforeRowActivate (there can be 2 rows with different data entry types and different tab stop strategy on other columns) and AfterCellUpdate (on the "other" cell) events got me what I needed.
Thank you for support!
There's no need to change the EditorComponent for the entire column. You can set it in a cell. You can also set the Style property on the cell.
It's hard to say what the best approach is here, since I don't know much about your requirements. But I would try using the InitializeRow event. You can examine the value of the "other" cell and based on that value, you can set the Style and/or EditorComponent or ValueList of the cell you want.