any easy way to do this...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

i have a database field that i bring into my dataset and it looks like this:

"xx92208"
"xxx1018"

the x's represent spaces. When i bind it to my datagrid it left justifies
everything, so when i go to do my dataset.findbykey i'm not getting a hit.
anyone have any ideas how i can resolve this?

thanks,
rodchar
 
If you know how the width then you're going to have to dynamically pad the
string with spaces. This sounds icky. Is there any way you can avoid making
the spaces meaningful? IMO, that'd be the ideal situation.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
for right now i ended up trimming the spaces in my SQL statements. This works
until they tell me that when i pass it it has to be fixed 10 spaces padded
left then i might be back. you know how that mgmt goes.

thanks,
rodchar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top