In the project where I use the Infragistics components, there is a customer request to split the column headers in two lines. They need a lot of narrow columns and the headers are too wide on one line.
I looked through the forum posts and in the docs but could not find a hint how this can be done
Thank you in advance for any idea how this can be done.
Markus
Markus,
Please, refer to our online documentation here and let me know if this is what you are looking to achieve.
Vlad
Thanks for your answer. What I mean is not quite what's shown in the documentation. What my customer wishes are Header with two text line per Column Header.
So for example the Column Header ProductName wurde become
ProductName
Best Regards
Hi Vlad
Thank you very much for your help. With your input it was indeed simpler than I thought.
Hi Markus,
You can try to set LabelTextWrapping property to Wrap and either change the column's width or increase the label's text width (in my case with an empty spaces) in order the text to be wrapped on multiple rows.
<igDP:Field Name="ProductName" Label="Product Name"> <igDP:Field.Settings> <igDP:FieldSettings LabelTextWrapping="Wrap"/> </igDP:Field.Settings></igDP:Field>
Another option is to add a newline symbol (
) : Label="Product
Name"
I think this should work fine for some simple scenarios like wrapping two or three words but you can also try to retemplate the LabelPresenter element and add more textblock elements and use custom binding.