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
785
Inserting a Value Converter Between Attribute Names and Field Labels
posted

Hello All,

I am autogenerating fields and would like to convert, for example, an attribute named "Start_Time" to a field label of "Start Time". My first thought on how to do this is to insert a value converter between the attribute name and the field label. This value converter would replace "_" characters with spaces. Is this possible? If so, how may I do it? If not, are there other approaches I can take?

Thanks,

Dave

 

Parents
No Data
Reply
  • 69686
    posted

    Hello Dave,

    I apologize that this post was not answered sooner. We are making the effort to ensure all posts are addressed by an Infragistics expert.

    You can handle the FieldLayoutIntialized event of the XamDataGrid and iterate through the FieldLayout's Fields and use the Convert method of the converter (IValueConverter) to set the Label property of each field.

    Thank you!

Children
No Data