Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
remove line from XamNumericEditor
posted

 I have a XamDataGrid with a field of XamNumericEditor EditorType.

When I edit this field, in the bottom of field appears a line that I can't  figure out  how to remove.

Can anybody help me?

 

Thanks, Liviu 

 

Parents
  • 8576
    Offline posted
    Hi Liviu -
     
    The line you are seeing is actually a series of '_' underscore characters - 1 for each character position.  These are meant as prompt characters.  To change the character that is used as the prompt character or to remove it altogether, you can set the PromptChar property on the XamNumericEditor.  You can do this by creating a Style that has a single Setter for the PromptChar property and the assigning that style to the EditorStyle property of the Field's FieldSettings object.
     
    Here is a post that demonstrates how to supply an editor style to set a property on the editor for a Field (in this example the TextWrapping property of a XamTextEditor is being set, but you can easily adapt this example for your case):
     
     
    Joe
     
     
Reply Children
No Data