Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop datagrid from trimming leading spaces 1

Status
Not open for further replies.

KDavie

Programmer
Feb 10, 2004
441
US
I have a datagrid which contains a column that has records with intentional leading spaces. For some reason the datagrid is automatically trimming these spaces when the data is bound to the grid. Is there anyway to stop this behavior? I want the leading spaces!!!!

Any help is appreciated.

-Kevin
 
I have run into this issue as well, and I'm sorry to say I have not found a work around. Maybe someone else can chime in.

Jim
 
I was afraid of that.

Thanks for the quick reply though.

-Kevin
 
You could try using a Replace on the string as it is bound and replace space with &nbsp - not tested but I think it may work!


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
>>You could try using a Replace on the string as it is bound and replace space with &nbsp - not tested but I think it may work!

that ought to to work...

Known is handfull, Unknown is worldfull
 
Thanks again ca8msm, that works perfect.

-Kevin

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top