Newline in DataGrid
-
I have a gridview on a webform. The table with the data I want it to display has a column with contents like: "Item1 Item2 Item3". What I want to do is make each one of these items appear on a new line in the cell that they are in. How would I do this? eg.
Some Column
| Item1 |
| Item2 |
| Item3 |
| ... |
|___________________|___________
| |
| |
| |
| |Thanks for any help ;)
-
I have a gridview on a webform. The table with the data I want it to display has a column with contents like: "Item1 Item2 Item3". What I want to do is make each one of these items appear on a new line in the cell that they are in. How would I do this? eg.
Some Column
| Item1 |
| Item2 |
| Item3 |
| ... |
|___________________|___________
| |
| |
| |
| |Thanks for any help ;)
Well, have you tried to format the text of the cell as : "Item1\r\nItem2\r\nItem3\r\n"?
-
Well, have you tried to format the text of the cell as : "Item1\r\nItem2\r\nItem3\r\n"?
-
Ohh yes sorry I forgot to mention I used \r\n and Environment.NewLine (which is pretty much the same thing) with no luck.
Try inserting
tags instead of newlines. That might do the trick. Josh -
Try inserting
tags instead of newlines. That might do the trick. JoshGood spot :) (especially since its in the wrong forum)**
xacc.ide-0.1.3.14 - Now with syntax support for PowerShell
xacc.ide-0.1.3.13 source code**