Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
How can I translate the columns resource strings?
posted

Hi,

I'm having a bad time trying to search how I can change the columns resource strings and didn't find any site that help me. I need to translate the following columns to Portuguese Brazil. Can someone help me?

Thanks

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Roger,

    Thank you for your post. I have been looking into it and I can suggest you create a Style for the HeaderCellControl and add an EventHandler for its Loaded event like this:

    <Style xmlns:igPrim="http://schemas.infragistics.com/xaml/primitives" TargetType="{x:Type igPrim:HeaderCellControl}">
        <EventSetter Event="Loaded" Handler="HeaderCellControl_Loaded"/>
    </Style>
     

    And in the handler you can get the Text of each Header and change it like this:

    private void HeaderCellControl_Loaded(object sender, RoutedEventArgs e)
    {
        (Utilities.GetDescendantFromType(sender as DependencyObjecttypeof(TextBlock), trueas TextBlock).Text = "new Text";            
    }
     

    Please let me know if this helps you or you have further questions on this matter.

    Looking forward for your reply.

Children