I've managed to change the name of the "add new" buttons ... but how do I change the "add ..." textabove the add-new buttons ?
e.Layout.Bands[
"Employee"].AddButtonCaption = "Nr Starfsmadur";e.Layout.Bands["TransactionAuthorizations"].AddButtonCaption = "Ny Heimild";
This works just great, but I need to change the "Add..." text to "Búa til..."
rgd,EE.
nevermind ... found out :-)
Infragistics.Shared.
rc;
// Get the resource customizer object for the
// 'Infragistics.Win.UltraWinTree' assembly.
// and customize a couple of string resources.
rc = Infragistics.Win.UltraWinGrid.
.Customizer;
rc.SetCustomizedString(
);
Hi Mike,
Could you please give me a complete code example ?
I want to change this particular text which I mentioned ... how would I do that in code ?
I opened up the path you showed me ... it doesn't even contain this object, so it won't build,rc = Infragistics.Win.UltraWinTree.Resources.Customizer;// this UltraWinTree is not found ... but of course I don't need that, but I'm just pointing it out ...
Infragistics.Shared.ResourceCustomizer rc; // Get the resource customizer object for the // 'Infragistics.Win.UltraWinTree' assembly. // and customize a couple of string resources. rc = Infragistics.Win.UltraWinTree.Resources.Customizer; rc.SetCustomizedString("xxxxx", "New string for 'xxxxx' resource"); rc.SetCustomizedString("yyyyy", "New string for 'yyyyy' resource");
// Get the resource customizer object for the // 'Infragistics.Win.UltraWinTree' assembly. // and customize a couple of string resources.
There's no property on the grid to change this text, but you can localize it using the ResourceCustomizer.
Customizing Assembly Resource Strings
The particular string you need here is in the WinGrid assembly and it's called "AddNewBoxDefaultPrompt"