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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AddNewRow customization

Thread ID:





131467 Jul 11,2017 02:01 PM UTC Jul 13,2017 05:12 PM UTC WPF 5
Tags: SfDataGrid
Asked On July 11, 2017 02:01 PM UTC


I'm starting to practice with Syncfusion controls developing a simple WPF MVVM app.

Is there a way to customize the "click here to add a new row" label appearing in the new row placeholder? 

I would like to translate it in italian.



Srinivasan Vasu [Syncfusion]
Replied On July 12, 2017 04:55 AM UTC

Hi Giacomo, 
Thanks for contacting Syncfusion support. 
We have checked your query and you can achieve your requirement by customizing the style of AddNewRowControl and change content of ContentPresenter. 
Please refer the below code 
<Style TargetType="syncfusion:AddNewRowControl"> 
            <Setter Property="Foreground" Value="White" /> 
            <Setter Property="BorderBrush" Value="Gray" /> 
            <Setter Property="BorderThickness" Value="0" /> 
            <Setter Property="Template"> 
                    <ControlTemplate TargetType="syncfusion:AddNewRowControl"> 
                                <VisualStateGroup x:Name="AddNewRowStates"> 
                                    <VisualState x:Name="Normal" /> 
                                    <VisualState x:Name="Edit"> 
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_AddNewRowTextBorder" Storyboard.TargetProperty="(UIElement.Visibility)"> 
                                                <DiscreteObjectKeyFrame KeyTime="0"> 
                                <VisualStateGroup x:Name="BorderStates"> 
                                    <VisualState x:Name="NormalRow" /> 
                                    <VisualState x:Name="FooterRow"> 
                                        <Storyboard BeginTime="0"> 
                                            <ThicknessAnimationUsingKeyFrames BeginTime="0" 
                                                <EasingThicknessKeyFrame KeyTime="0" Value="0, 1, 0, 0" /> 
                                            <ThicknessAnimationUsingKeyFrames BeginTime="0" 
                                                <EasingThicknessKeyFrame KeyTime="0" Value="0, -1, 0, 0" /> 
                            <Rectangle x:Name="PART_CurrentFocusRow" 
                                   Visibility="{TemplateBinding CurrentFocusRowVisibility}" /> 
                            <Border Background="{TemplateBinding RowSelectionBrush}" 
                                Clip="{TemplateBinding SelectionBorderClipRect}" 
                                Visibility="{TemplateBinding SelectionBorderVisiblity}" /> 
                            <Border x:Name="PART_AddNewRowBorder" 
                                Background="{TemplateBinding Background}" 
                                BorderBrush="{TemplateBinding BorderBrush}" 
                                BorderThickness="{TemplateBinding BorderThickness}"> 
                                <ContentPresenter /> 
                            <Border x:Name="PART_AddNewRowTextBorder" 
                                Clip="{TemplateBinding TextBorderClip}" 
                                <ContentPresenter Margin="{TemplateBinding TextMargin}" 
                                              Content="Add New Row" /> 
Please refer the below UG Link: 
Also, SfDataGrid enables you to customize the watermark text of AddNewRow by changing value of AddNewRowText in Resource Designer. To customize the AddNewRowText, add the default Syncfusion.SfDataGrid.WPF.resx file in Resources folder and then customize the value of AddNewRowText. 

Replied On July 12, 2017 07:19 AM UTC

Hi Srinivasan,

thank you for your reply.

Apologize if I could find the solution in your documentation without direct support, I will learn to better read it soon.

I am trying the second way because I find it more proper and elegant than customize the style for a single label but I am not achieving my goal.

Here are my steps:

  • I downloaded the default SfDataGrid resx file 
  • I added it to my project as a resource, finding it in the Resources folder in Solution Explorer
  • I opened it and edited the value of the "AddNewRowText" property, then saved it
  • I rebuild the project and ran it

but the text is still "Click here to add a new row".

I also changed the compile action setting it to "Resource" without success.

You can see all of this summarized in the attached picture

Where am I wrong?



Attachment: Immagine_b6e0adfd.zip

Replied On July 12, 2017 09:16 AM UTC

Dear Giacomo,

I'm glad to answer you since I'm italian too, and I'm developing with this library in WPF for more than one year.

Of course I soon had your same requirement to localize in Italian the English parts of the library and probably had your same problems.

Probably this little article can help you:


In addition, I show you in the attached zip file how I have solved the problem in my application.

I added a directory named "Resources" in the Assembly that manages my views and inserted in it two resource files that I probably changed more than one year ago, and it works.

See the attached zip file. Hope it can help you.

Ciao e buon lavoro !!!!

Io mi trovo molto bene con l'utilizzo di queste librerie.

Silvio Scattaglia, Infolab Piacenza

Attachment: localizzazione_syncfusion_2fc1a864.zip

Replied On July 13, 2017 08:14 AM UTC

Ciao Silvio,

it's nice to find you here!

Thanks for your help, I solved the problem: it was for I added the .resx file as a project resource rather than manually adding a "Resources" folder in solution explorer and then add into it the .resx file.

Now it works perfectly!

Thanks again, read you soon!


Srinivasan Vasu [Syncfusion]
Replied On July 13, 2017 05:12 PM UTC

Hi Giacomo, 
As stated by Silvio, you can localize the file present in different assembly or default namespace is not as same as assembly name by using Kb.

Thank for your update Mr.Silvio and Giacomo. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon