如何在SpinEdit Devexpress中将NaN(非数字)设置为零?

时间:2014-03-25 18:13:11

标签: c# asp.net devexpress

@Html.DevExpress().SpinEditFor(m => m.MLComPrice,
                    settings => {
                                    settings.Properties.DisplayFormatString = "F";
                                    settings.Properties.ValueChangedDelay = 1;
                                    settings.Properties.MaxLength = 6;
                                    settings.Properties.MinValue = 0;
                                    settings.Properties.MaxValue = 100;
                    }).GetHtml()

如果我只是数字" ,"在SpinEdit中,它显示NaN,如何将其设置为零?

0 个答案:

没有答案