Problem : UltraGrid Parent and Child rows(bands) selection

Problem : UltraGrid Parent and Child rows(bands) selection

I have an UltraWinGrid which has parent and child rows (bands) .When I try to move through the grid using the up and down keys it seems to bypass the child bands.

For example

1.  If I click on a parent band then press the down key it moves to the next parent and will not move to the child band, even though the parent band has been expanded to show the children.

2. If I click on a child band and press the down key it will move to the next child band. When it reaches the last child band and I press the down key again it moves to the first child band within the next parent, it doesn’t select the next parent.

Any ideas?


Solution : UltraGrid Parent and Child rows(bands) selection

For Overriding default actions u can Handel Key Down Event

private void ultraGrid1_KeyDown(object sender, KeyEventArgs e)
{

if (e.KeyCode == Keys.Down)
{
// for next row

this.ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.NextRow);
}
else if (e.KeyCode == Keys.Right)
{

// for first row in band
this.ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.FirstRowInBand);
}

}