Hi
Patrick,
Thanks
for using Syncfusion products.
We have
analyzed your query. You can achieve your requirement by using ChildGridSelectedItem
property. We have prepared the sample for your reference. In our sample we have
the property named Selectitem in ViewModel Class and ChildGridSelectedItem is set to this property
whenever the ChildGridSelectedItem
changes.
Please
refer the below code snippet.
Code
snippet[C#]:
this.dataGrid.Model.Table.RecordExpanded
+=
Table_RecordExpanded;
void Table_RecordExpanded(object sender, GridDataValueEventArgs<GridDataRecord> e)
{
e.Value.ChildModels[0].Table.RecordsSelectionChanged
+= Table_RecordsSelectionChanged;
}
void Table_RecordsSelectionChanged(object sender, GridDataRecordsSelectionChangedEventArgs e)
{
vm.Selectitem = ((sender as GridDataTable).Model as GridDataChildTableModel).ChildGridSelectedItem;
}
|
Please refer the attached sample.
Please
let us know if you have any queries.
Thanks,
Kasthuriraja
G
Attachment:
Binding_selectedchild_6b4f74.zip