From 056733e2dda46cd4355d8558cba65a06b2afcefd Mon Sep 17 00:00:00 2001 From: Sreemon Premkumar M Date: Tue, 26 Aug 2025 13:20:52 +0530 Subject: [PATCH] ES-975464 - Resolve the ReadMe issue in this sample repository --- README.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 11a12bb..c8e2cdd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,21 @@ -# How to change the itemssource of detailsview at runtime in winui datagrid? -This example describes how to change the itemssource of detailsview at runtime in winui datagrid. +# How to change the itemssource of detailsview at runtime in WinUI DataGrid + +This example describes how to change the itemssource of detailsview at runtime in [WinUI DataGrid](https://www.syncfusion.com/winui-controls/datagrid) (SfDataGrid). + +`ItemsSource` for `DetailsViewDataGrid` is populated from the DataContext of parent row based on [ViewDefinition.RelationalColumn](https://help.syncfusion.com/cr/winui/Syncfusion.UI.Xaml.DataGrid.ViewDefinition.html#Syncfusion_UI_Xaml_DataGrid_ViewDefinition_RelationalColumn). DetailsViewDataGrid doesn’t update its ItemsSource at runtime based on the property change, which is mapped the DetailsViewDataGrid ItemsSource. You can update the ItemsSource on the property change by setting [SfDataGrid.LiveDataUpdateMode](https://help.syncfusion.com/cr/winui/Syncfusion.UI.Xaml.DataGrid.SfDataGrid.html#Syncfusion_UI_Xaml_DataGrid_SfDataGrid_LiveDataUpdateMode) as `AllowChildViewUpdate`. + +#### XAML + +``` xml + +``` +#### C# + +``` csharp +this.dataGrid.LiveDataUpdateMode = LiveDataUpdateMode.AllowChildViewUpdate | LiveDataUpdateMode.AllowDataShaping; +``` \ No newline at end of file