I am attempting to enable the following behavior inside a xamgrid.
A user is currently editing a cell in the xamgrid and presses the down arrow and the cell beneath the current cell is activated and the cell enters edit mode.
Through searching through the forums I've found a similar question for the WPF XamDataGrid, but I was unable to figure out how to modify this for Silverlight.
Below is the link:
http://blogs.infragistics.com/forums/p/43947/240244.aspx#240244
Hi,
So there isn't a direct way to do this with events.
However, you could derive from the xamGrid and override the method we use to calculate the ActiveCell, and thus figure out how it was made active:
public class TestGrid : XamGrid { protected override void SetActiveCell(CellBase cell, CellAlignment alignment, InvokeAction action, bool allowSelection, bool setFocus, bool scrollIntoView) { CellBase previousActivecell = this.ActiveCell; base.SetActiveCell(cell, alignment, action, allowSelection, setFocus, scrollIntoView); if (action == InvokeAction.Keyboard) { if (previousActivecell != null && this.ActiveCell != null) { if (previousActivecell.Row.Index < this.ActiveCell.Row.Index && previousActivecell.Column.Key == this.ActiveCell.Column.Key) { this.EnterEditMode(this.ActiveCell); } } } } }
Hope this helps,
-SteveZ