Click to See Complete Forum and Search --> : label without trim


rado
10-14-2004, 04:09 AM
I have a label in a template column in a asp:datagrid that is bounded to a database.
Some strings in the database have spaces at the begining.
How can I make a label not to trim those spaces, because I need to show them in the datagrid, or can I use anything else?
The textbox doesn't make the trim but I can't use it because it doesn't enlarge the cell in case the string is too long, and I would have to make it multiline. This is not good because it will have the vertical scrollbar.
Thank you for your time

PeOfEo
10-14-2004, 10:42 PM
I am confused about what you are trying to do. You might consider using a repeater and simply writing the data out into the html with that rather then writing it out into a data grid. It will give you some more control over what is going on.