Mela OS

Mela OS

  • NA
  • 1
  • 0

How to preserve whitespace in DataGrid?

Aug 21 2006 6:03 AM

Hi,

I have a datagrid which is used to show product name.
But the thing is, the product name consists for a few parts.

For example, a product name would be sth like this:
abc 123 3aeiiyo 1

But sometimes, one of third part might be just a few chars long.
So it become something like this:

abc 123 3       1 but when it's displayed inside the datagrid it become abc 123 3 1.

It's apparent to me that the datagrid will truncate if it have more than one whitespaces.

FYI i am getting the data from a dataset.
So is there a way to format the datagrid so it will show the proper product name with all the whitespaces?

Thanks in advance!!! :)