Hi Supriya,
Thank you for your interest in Syncfusion products.
We
regret to let you know that we could not clearly understand you query. But we
have provided the sample that what we have understood from your query. In the
below sample, if you press down arrow when cell is in parent table, focus will
be move to child table. It can be achieved by customizing TableControlCurrentCellKeyDown event. Using this event, you can
customize your need regarding down arrow key press. Please make use of below
code,
Code
Snippet:
Private Sub gridGroupingControl1_TableControlCurrentCellKeyDown(ByVal sender As Object, ByVal e As GridTableControlKeyEventArgs)
If (e.Inner.KeyCode = Keys.Down) Then
Dim style As GridTableCellStyleInfo = Me.gridGroupingControl1.TableControl.GetTableViewStyleInfo(e.TableControl.CurrentCell.RowIndex, e.TableControl.CurrentCell.ColIndex)
Dim style1 As GridTableCellStyleInfo = Me.gridGroupingControl1.TableControl.GetTableViewStyleInfo((e.TableControl.CurrentCell.RowIndex + 1), e.TableControl.CurrentCell.ColIndex)
If ((Not (style) Is Nothing) _
AndAlso ((Not (style.TableCellIdentity) Is Nothing) _
AndAlso ((Not (style1.TableCellIdentity) Is Nothing) _
AndAlso ((style1.TableCellIdentity.TableCellType = GridTableCellType.NestedTableCell) _
AndAlso (((style.TableCellIdentity.TableCellType = GridTableCellType.RecordFieldCell) _
OrElse (style.TableCellIdentity.TableCellType = GridTableCellType.AlternateRecordFieldCell)) _
AndAlso style.TableCellIdentity.DisplayElement.GetRecord.HasNestedTables))))) Then
Dim childTableName As String = style1.TableCellIdentity.DisplayElement.GetRecord.NestedTables(0).ChildTable.Name
Me.gridGroupingControl1.GetTableControl(childTableName).CurrentCell.MoveTo(3, 2)
e.Inner.Handled = true
End If
End If
End Sub
Sample:
http://www.syncfusion.com/downloads/support/directtrac/117931/Sample_CurrentCell_Focus-1317168227.zip
Please let me know if I misunderstood
your query.
Regards,
Neelakandan