We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridDataControl - GridDataTableProperties - Missing Binding To SelectedItem


How can we bind the selection inside a nested grid to a property?

1 Reply

KG Kasthuriraja G Syncfusion Team February 11, 2014 11:31 AM UTC

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.


Kasthuriraja G

Attachment: Binding_selectedchild_6b4f74.zip

Live Chat Icon For mobile
Up arrow icon