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. Image for the cookie policy date

New row text

Hi, does anyone know how to customize the text on the new row? Right now it says "Click here to add new row", I would like to change that.

Thanks

6 Replies

DY Deivaselvan Y Syncfusion Team November 20, 2018 12:40 PM UTC

Hi Phunction,

Thank you for contacting Syncfusion support.

You can refer the below documentation to customize the default text of the AddNewRow control.
https://help.syncfusion.com/windowsforms/sfdatagrid/datamanipulation#customizing-addnewrow-text-using-default-resource-file

Refer the demo sample for the Localization from the below installed location
C:\Users\Public\Documents\Syncfusion\Windows\16.3.0.29\DataGrid.WinForms\Localization\CS

GitHub location:
https://github.com/syncfusion/winforms-demos/tree/master/DataGrid.WinForms/Samples/Localization/CS

Please let us know if you have any other questions.

Regards,
Deivaselvan 



PH Phunction November 20, 2018 06:01 PM UTC

Hi, this allows me to change colors etc, but I still don't see a way to actually change the text. How do I do that?


DY Deivaselvan Y Syncfusion Team November 22, 2018 02:55 AM UTC

Hi Chris,

As we specified earlier, you can refer the below documentation which demonstrate on how to customize the default text of AddNewRow.
https://help.syncfusion.com/windowsforms/sfdatagrid/datamanipulation#customizing-addnewrow-text-using-default-resource-file 

We have prepared the runnable sample to change the default text of the AddNewRow by editing the default resource file of DataGrid. You can find the sample from the below link and let us know if this helps you.

http://www.syncfusion.com/downloads/support/forum/141029/ze/Localization-1320774220.zip

Regards,
Deivaselvan 



PH Phunction November 22, 2018 03:19 AM UTC

Hi, sorry is it the part where it says: Syncfusion.SfDataGrid.WinForms.resx

Is there a way to do it programmatically? I would like each grid I use to say something else but this would apply to all grids would it not?

Thanks


DY Deivaselvan Y Syncfusion Team November 22, 2018 12:12 PM UTC

Hi Chris,

You could refer steps from the below documentation to add Resource file (Syncfusion.SfDataGrid.WinForms.resx
) at sample level.
https://help.syncfusion.com/windowsforms/sfdatagrid/localization#localize-at-sample-level

At the moment, we do not have support to change the default text of AddNewRow control in code behind. We will consider your requirement to set this in code behind in order to show different text to the AddNewRow control of each DataGrid in the Form. We have logged this request as a feature report. This feature will be available in our upcoming 2018 Volume 4 release which is expected to be available by mid of December 2018 and also patch for this fix available from November 29, 2018. If you required patch for this earlier than the 2018 Volume 4 release then you could create incident from your Direct-Trac account to avail patch.

Please let us know if you have any other questions.

Regards,
Deivaselvan 



DY Deivaselvan Y Syncfusion Team November 29, 2018 12:02 PM UTC

Hi Chris,  

We have provided the support to change the default text of the AddNewRow programmatically in your version 16.3.0.29. Now you can change the default text of the AddNewRow using the property SfDataGrid.AddNewRowText. Please refer to the following code example. 

Code example :  
this.sfDataGrid.AddNewRowText = "Click to add new row"; 


The patch for the enhancement  can be downloaded from the following location.       
    
Recommended approach - exe will perform automatic configuration    
Please find the patch setup from below location:    
    

Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment   
Please find the patch assemblies alone from below location:    
     
  
Assembly Version: 16.3.0.29   
   
Installation Directions : This patch should replace the files “SfDataGrid.WinForms” under the following folder.   
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\[TargetFramework]   
Example : $system drive:\Program Files\Syncfusion\Essential Studio\16.3.0.21\precompiledassemblies\16.3.0.29\4.0    
    
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.    
    
Note :    
To change how you receive bug fixes, ask your license management portal admin to change your project’s patch delivery mode.    
   
    
Disclaimer :    
    
If you have received other patches for the same version for other products, please apply all patches in the order received.    
The fix for this issue will be included in our upcoming 2018 Volume 4 release which is expected to be rolled out in the mid of December 2018.   
  
Regards, 
Deivaselvan 


Loader.
Live Chat Icon For mobile
Up arrow icon