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
590
Problem with default values when grid has date and combo box....
posted

I have a grid that has a combo box to display possible values for the cell  and  a datecontrol. These 2 fields are optional.

Grid displays everything great when a value is selcted from the comboBox and a date from the date control.

But if nothing is selected then I see a 0(zero) for the cell that has the combo embedded and default date of 01/01/0001

I would like them to be blank when nothing has been selected....

Is there an easy way to achieve this?

Another problem I have with a decimal type cell is it always gets formatted to display a $ sign in front of the decimal value, how to format it so that I dont see the $ sign as my data is really laboratory data....

Thanks! 

 

 

 

 

 

 

  • 69686
    posted

    Hello,

    For the XamDateTimeEditor you can set the NullText property ( and PadChar and PromptChar properties also) to get the desired look.

    NullText will be the text displayed when there is no data in the editor and it is not in EditMode.  When entering the Edit mode, the PromptChars will be displayed to prompt the user for the expected data that should be inserted. Like this:

    <igEditors:XamDateTimeEditor
                Name="xamDateTimeEditor1" PromptChar="?" PadChar="/" NullText="   " >

    You can try the same with the XamComboEditor. 

    About the $ sign please take a look at that link http://news.infragistics.com/forums/p/20591/74280.aspx#74280

    Hope this helps and let me know if it works in your scenario.

    Alex.