Dan,
>They are char fields in a SQL Server table. But for short fields (20 or less) I prefer to use char instead of varchar. There has to be another way...
I have thought about adding an AutoTrim property to the TextBox to get around this, but you run into a problem with "dirty data" indicators when you chop off the trailing spaces. It sees the column as changed. If you can think of an implementation that resolves this issue without introducing this problem, I'd be happy to implement it at the MM .NET Framework level!
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com