I have a ultra text editor bound to dataset field of type System.String with max. lenght of 40 chars. When the form comes up I select the control like this: this.EditName.Select().
This gives the focus to the control and selects all text PLUS some empty space. It looks like all of the max. chars are selected ???
I have the same control in others forms where they working correctly and I can not find any property differences of the control or the dataset used by the forms. Does anybody has some idea?
Thanks for any help.
Markus
Thanks Mike,
That's could be the problem. In the dataset I can not see any difference, but my underlying database field are different: this one is char(40) instead of nvarchar(40).
I have not tested it right now, but this is the point.
Thanks. Markus
Hi Markus,
My guess is that you are binding to a Fixed-length field and that the data source is returning a string with empty spaces in it. I doubt this has anything to do with the UltraTextEditor itself. Have you examined the string to see if there are space characters in it?
No ideas so far?
I have figured out that the length of the selected text is the length of the datafield in the database and therefore of the dataset and NOT the length of the current text.
I'm still looking for some properties to avoid this. Maybe this is a BUG, but like mentioned before, I have similar forms where text is selected correctly.
Thanks for any help finding this problem.