Using Datagrid within RowDetailsTemplate of another Datagrid

前端 未结 2 929
眼角桃花
眼角桃花 2021-01-20 19:14

I would like to use a DataGrid within the RowDetailsTempalte of another Datagrid. This inner Datagrid should have its columns bound to a property of the current object in t

2条回答
  •  执笔经年
    2021-01-20 19:43

    The last answer on this thread helped me: How is access inner Datagrid in Silverlight?.

    On the inner DataGrid I set ItemsSource="{Binding Phones}" and removed the DataContext.

提交回复
热议问题