Hi all,
I have a new task that need to display out a report in grid with few column of data, then allow user direct fill in the data like using excel. the grid should be able to move to next cell by clicking the arrow keys in keyboard, and user can direct key-in the value. May I know is it any function of infragistic able to customize like this?
Please guide.
Thank you very much!
if set the column ValueList, the data changes in the cell after passing through it.
Thanks for this code!
_________________
approval pre paid credit cards
instant approval for credit cards with bad credit
maybe u can try to add this code at Keys.Up and Key.Down
Key.Upint activeCellidx = ultragrid.ActiveCell.Column.Index;if (ultragrid.ActiveRow.Index > 0){ultragrid.ActiveRow = ultragrid.Rows[ultragrid.ActiveRow.Index - 1];ultragrid.ActiveCell = ultragrid.ActiveRow.Cells[activeCellidx ];}
Keys.Downif (ultragrid.ActiveRow.Index < ultragrid.Count-1){ultragrid.ActiveRow = ultragrid.Rows[ultragrid.ActiveRow.Index + 1];ultragrid.ActiveCell = ultragrid.ActiveRow.Cells[activeCellidx];}
Hi,
In a case like this, your EditingControl will be receiving the key message for the arrow key.
So you have to do something similar on your EditingControl that you are doing with the grid here. Trap keydown and watch for the arrow keys and then you can call the same PerformAction methods on the grid that you are using in this case.
If you don't want to write code in your EditingControl that is specific to the grid and you need a more generic solution, you could try to simulate the Tab key by calling SelectNextControl or using SendKeys.
I have implemented the excel like navigation as described above. I am using a UltraControlContainerEditor for the editor of a column in my grid. Once I navigate to this column using the arrow keys I cant navigate away using the arrow keys. It seems as though the key press event is not firing for the grid while the editor has focus, most likely because it is being handled by the editor embedded inside the cell. Is there anyway to achieve this arrow navigation with UCC editors? Maybe some property on UCC editor that will pass key events to the grid.
Thanks in advance!