How to show Groupnames in XAML Binding SfDataForm?

Hi,

how can I show group names with a XAML based SfDataForm? I set the GroupName property but they are not shown. If I set the GroupName property for all items I get a NullReferenceException in the App.        
   
I can't post any code because its whitespace if I save my thread.
       
           
               
               
               
               
               
               
           
       
   

1 Reply

KA Karthikraja Arumugam Syncfusion Team March 12, 2020 01:19 PM UTC

Hi Oliver, 
 
Thank you for contacting Syncfusion support. 
 
We have checked your requirement of “Showing Group Names for DataFormItems while creating DataFormItems in xaml”, and we would like to inform you that to add group we have to add DataFormItems inside DataFormGroupItem in xaml and you can set GroupName to it. 
 
Please refer the following code snippet to achieve your requirement, 
  <dataForm:SfDataForm.Items> 
                    <dataForm:DataFormGroupItem GroupName="Details"> 
                        <dataForm:DataFormGroupItem.DataFormItems> 
                            <dataForm:DataFormTextItem Name="Name" Editor="Text" GroupName="Details"/> 
                            <dataForm:DataFormTextItem Name="ContactNumber" Editor="Text" GroupName="Details"/> 
                            <dataForm:DataFormTextItem Name="Address" Editor="Text" GroupName="Details"/> 
                        </dataForm:DataFormGroupItem.DataFormItems> 
                    </dataForm:DataFormGroupItem> 
     </dataForm:SfDataForm.Items> 
 
We hope this helps. Please let us know if you would require any further assistance. 
 
Regards, 
Karthik Raja A 


Loader.
Up arrow icon