I have a list which contains one textbox in it.
Basically what it does is get some results and display them one above the other.
The problem occures when I have a result that is multiline. The result then tends to "overflow" over everything under it.
The structure of the portion is
Group 1
Question 1
Result 1
Result 2
...
Result N
Group 2
Question 1
Result 1
Result 2
...
Result N
If for example Result 1 is multiline it will overflow onver Result 2/3/4 or even over the next group...
How can I make the list which contains Results expand as the textbox for the results expand as well (TextBox.CanGrow = true for textboxes holding results. I can't find anything similar for lists)
Edit: I have solved the problem by using "Regex.Replace(string,"\r", " ") and having it all in one line and wrapping but I would really like to keep the formating if possible
Basically what it does is get some results and display them one above the other.
The problem occures when I have a result that is multiline. The result then tends to "overflow" over everything under it.
The structure of the portion is
Group 1
Question 1
Result 1
Result 2
...
Result N
Group 2
Question 1
Result 1
Result 2
...
Result N
If for example Result 1 is multiline it will overflow onver Result 2/3/4 or even over the next group...
How can I make the list which contains Results expand as the textbox for the results expand as well (TextBox.CanGrow = true for textboxes holding results. I can't find anything similar for lists)
Edit: I have solved the problem by using "Regex.Replace(string,"\r", " ") and having it all in one line and wrapping but I would really like to keep the formating if possible