|131707||Jul 24,2017 02:47 PM UTC||Aug 4,2017 05:17 AM UTC||WPF||5|
<syncfusion:SfDataGrid x:Name="FirstLevelNestedGrid" AddNewRowPosition="Top" AutoGenerateColumns="True"/>
<!--<syncfusion:SfDataGrid x:Name="FirstLevelNestedGrid" AddNewRowPosition="Top" AutoGenerateColumns="False">
<syncfusion:GridTextColumn HeaderText="IdEmail" MappingName="Id" IsHidden="True" />
<syncfusion:GridTextColumn HeaderText="IdAnagrafica" MappingName="IdAnagrafica" IsHidden="True" />
<syncfusion:GridTextColumn HeaderText="Nome" MappingName="OwnerName" />
<syncfusion:GridTextColumn HeaderText="Email" MappingName="Address" />
thank you for your very detailed reply, but what you showed in the video and in the demo project you sent me was already in place for me: I am able to add new details row, but only if there already is at least a details row.
My difficulty is to add a new details row relative to a brand new master row: this seems to be not possible even in your demo project.
I attached a video where I'm using your demo project, adding a new master row and then trying to add a details row to it: you'll see there is only the header row in the details grid, no "Add new row" entry.
I'm a total rookie with Syncfusion Essential Studio since I am starting to use it after purchasing the license so apologies if there is something obvious I am missing.
this.dataGrid.AddNewRowInitiating += DataGrid_AddNewRowInitiating;
private void DataGrid_AddNewRowInitiating(object sender, Syncfusion.UI.Xaml.Grid.AddNewRowInitiatingEventArgs e)
(e.NewObject as OrderInfo).OrderDetails = new ObservableCollection<OrderDetails>();
thank you, now it work perfectly!
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.