Click here to Skip to main content
15,913,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,

In my silverlight application I have one datagrid, if I press tab particular cell is getting focused but I press down/up key same cell in another row should get focused.
Eg: If I am in 3rd cell of first row and if I press down key third cell of second row should get focus.

Is there anyway to do it without datagrid.beginEdit() method.

Thanks in advance.
Posted

1 solution

hi sriman
as per my assumption ...........
in
C#
private void Grid1_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyCode==38)//for down-Arrow
  {
    Grid1.Cell.IsSelected==true;
  }
}

C#
private void Grid1_KeyUp(object sender, KeyEventArgs e)
{

C#
if(e.KeyCode==40)//for up-Arrow
  {
    Grid1.Cell.IsSelected==true;
  }

}

u will try like this........
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900