Hi there,
I have made some particular cells made editable in UltraGrid. When pressing the TAB key while editing the contents of a cell, the focus rectangle moves to the next cell (regardless if editable or not).
How can I modify this behavior to make the focus move from one editable cell to the next editable cell?
Thanks in advanceAchim
Hi Mike,
thank you for your answer. In the meanwhile I found a solution by myself. To explain it in simple words:
1. Listen to the KeyDown event2. If TAB was pressed, search for the next editable cell using PerformAction(NextCell) and comparing it with a List of editable cells (which was created in OnRowInit before)3. If the Cell is in the List activate it, otherwise call PerformAction again
It may sound complicated but it isn't. I made a helper class named "EditCellBehavior" which enabled all these things with a single line of code.
Thank you
Achim
Hi Achim,
How are you making the cells read-only? If you are doing this for a whole column, then the easiest thing to do is to also set the TabStop property on the column to False.
If you are doing this on a cell-by-cell basis, then there's no easy way to do it, except maybe to use Activation.Disabled, instead of some of the other activation settings that let you copy text from the cell.