parentDataGrid.SelectionChanged += parentDataGrid_SelectionChanged;
void parentDataGrid_SelectionChanged(object sender, Syncfusion.WinForms.DataGrid.Events.SelectionChangedEventArgs e)
{
var data = this.parentDataGrid.SelectedItem as OrderInfo;
this.childDataGrid.DataSource = data.OrderDetails;
} |