Hi! I'm using a couple of textboxes, in which I set the max lenght the user can type in to 50. I have also set the database in as400 to store 50 charachters.

My problem is if user does not enter any data and saves his record and then want to edit his data. The data retrieve from the database will appear in the textbox as 25 spaces instead of just blanks. Which means the user can only type a few words before he is locked out as the spaces would be taking up the space in the textbox! Can anyone advise? Thanks