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
640
How to Change default N/A headers for null values
posted

We’ve noticed that by default, the row and column headers that have NULL values are shown as “N/A”.

 

How can we change this to a user-defined text?

 

Thanks

Parents
  • 1760
    Suggested Answer
    posted

    Hi pidong,

    You can change "N/A" header cell text in your hierarchy descriptor:

    hierarchyDescriptor = new hierarchyDescriptor(p => p.PropertyOfModelClass);

    hierarchyDescriptor.AppliesToPropertiesOfType = typeof(PropertyOfModelClassType)

    hierarchyDescriptor.AddLevel(p => (p!= null)? p.Value.PropertyName.ToString() : "userdefined text", "LevelName");

     

    Hope this is helpful for you. If you have any other concerns do not hesitate to ask.

     

    Thanks,

    M.Yovchev

Reply Children