DevExpress.XtraEditors.TextEdit,设定为必须number类型的。
设定为:
1 this.txtMakeCollections.Properties.Mask.EditMask = "###############0.00#####"; 2 this.txtMakeCollections.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric; 3 this.txtMakeCollections.Properties.Mask.UseMaskAsDisplayFormat = true;