随笔分类 - .Net--DEV
摘要:下拉框控件的一些设定: 1 //市 2 string strCity = WebLockConfig.Instance.webCom.GetCityByProId(""); 3 DataSet cityDS = Newtonsoft.Json.JsonConvert.DeserializeObject<DataSet>(strCity); 4 cmbCity.Properties.DataSource = cityDS.Tables[0]; 5 cmbCity.Propert...
阅读全文
摘要:DVE显示时间的控件所用控件是DevExpress.XtraEditors.DataEdit要实现的效果:所需设定的在属性Property属性中
阅读全文
摘要:1 显示千分符如果把一个变量转换成千分符格式的,前提是它有数据类型;如果把创建的表的某一列转换成千分符格式的,前提是给它数据类型。
阅读全文
摘要:① 设定Grid的查询Views-->Options-->OptionsView-->ShowAutoFiterRow 为True.② 设定Grid的按钮Properties-->Buttons-->可选OnDelete
阅读全文
摘要:1 设定输入框获得焦点 txtGoodIDName.Focus();2 设定数字xx.xx格式的输入框this.txtMakeCollections.Properties.Mask.EditMask = "###############0.00#####"; this.txtMakeCollections.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric; this.txtMakeCollections.Properties.Mask.UseMaskAsDisplayFor...
阅读全文
摘要: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.Propertie...
阅读全文
摘要:以下的说明是VisualStudio2010,Developer Express v2011 vol 1环境,①设定XtraGrid的GridView-->Main-->Colums-->具体的某一列-->ColumnEdit-->设定为RichTextEdit -->设定Name属性和Encoding属性(为Uinicode(UTF-8),防止出现乱码)②设定XtraGrid的GridView-->Main-->Views-->OptionsView-->RowAutoHeight为True。 如果在界面上设置不成功,可以写在程序里
阅读全文
摘要:知识点一 显示XtraGrid.GridView的滚动条要点:设定ColumnAutoWith选项为false和ShowHorzLines选项为True具体步骤:GridView的Main-->Views-->OptionsView-->ColumnAutoWith选项为false和ShowHorzLines选项为True另外的方法,在要改的Designer.cs中,直接更改列宽知识点二 删除XtraGrid.GridView选中的行 ,使用this.GridViewSalesOrder.DeleteSelectedRows(); 1 /// <summary>
阅读全文
摘要:① 树(DevExpress.XtraTreeList.TreeList控件) 1 /// 2 /// 刷新本页面 3 /// 4 private void FreshDistrictInfo() 5 { 6 DistrictModel districtModel = new DistrictModel(); 7 string strDistrictModel = Newtonsoft.Json.JsonConvert.SerializeObject(distri...
阅读全文
摘要:DEV LookUpEdit下拉框总结DevExpress.XtraEditors.LookUpEdit 设定Properties中一些重要的属性ValueMember属性,实际的值DisplayMember属性,显示的值NullText属性,默认的属性值,如“请选择”,ShowFooter属性,设定为falseShowHeader属性,设定为falsePopupFormMinSize属性,设定弹出的项的宽度右击控件设定EditComlumns,目的设定那些列显示出来一些在程序逻辑中写的代码 1 //cmbProvince下拉菜单 2 ProvinceModel bin...
阅读全文
摘要:1 向工作区拖入一个DevExpress.XtraBas.Barmanager控件,拖入一个DevExpress.XtraBas.PopupMenu控件。2 PopupMenu控件设定Manager属性是刚才拖入的Barmanager名称,在PopupMenu控件右击设定“Customise”,设定具体菜单3 树右击菜单的代码 /// /// 右击节点出现的菜单 /// /// /// private void treeDistrictInfo_MouseUp(object sender, MouseEventArgs e) { TreeList tree = sender as Tr...
阅读全文