DevExpress
主要介绍DevExpress的各种控件的使用方法,以及案例
¥99.90
¥99.00
购买须知?
本专栏为图文内容,最终完结不会低于15篇文章。
订阅博主任意付费专栏,享有该博主全部专栏一年阅读权限。
本专栏为虚拟产品,一经付款概不退款,敬请谅解。
厦门德仔
毕业于南昌大学,英语6级,拥有超过13年的工作经验,数据库工程师(中级),ERP认证工程师,FRCA报表工程师,美国PMP项目管理师,具有项目管理能力,拥有多年项目实施与运维,精通SQL数据库,Asp.net和数据分析管理和开发。曾在台企,港企,美企,民企实施过多个完整ERP,WMS,EHR,OA,BI等项目。
-
原创 DevExpress的DateEdit设置显示日期和时间
1. 设置Mask.EditMask和DisplayFormat,EditFormat属性,设置为一致:'yyyy-MM-dd HH:mm'; //按照想要的显示格式设置此字符串。[csharp]view plaincopythis.dateEdit1.Properties.DisplayFormat.FormatString="yyyy-MM-ddHH:mm";this.date2020-12-15 09:48:264147
0
-
原创 [DevExpress]TreeList 显示行号
private void treeList_CustomDrawNodeIndicator(object sender, DevExpress.XtraTreeList.CustomDrawNodeIndicatorEventArgs e) { DevExpress.XtraTreeList.TreeList tmpTree = sender as DevEx2016-03-30 13:40:461774
0
-
转载 [DevExpress]DateEdit设置显示日期和时间
1.DevExpress的DateEdit设置显示日期和时间this.dateEdit1.Properties.DisplayFormat.FormatString = "yyyy-MM-dd HH:mm"; this.dateEdit1.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; t2017-09-18 09:09:483324
0
-
原创 [DevExpress]在Dev GridControl中添加颜色可变的ProgressBar z
在使用DevExpress,GridControl自带的ProgressBarControl的时候由于无法通过BackColor/ForeColor来改变进度条的颜色所以很多特效是实现不了的。如下面所以必须使用其他的一些方式来实现颜色可变的ProgressBar.情况一、不使用ProgressBarControl,而是根据单元格的值使用GDI绘制一个带背景色的长方形的方式来实现百分比的效果。同时绘2016-06-05 06:58:266505
0
-
原创 [DevExpress]控件-checkboxlist之运用
数据绑定: string strSql = "SELECT [UserName],[Mail] FROM [OA].[dbo].[DZ_Users]"; DataTable dt = new DataTable(); dt = DbHelperSQL.Query(strSql.ToString()).Tables[0];2016-04-11 10:39:283877
0
-
原创 [DevExpress]控件之GridLookupedit的运用
代码: #region 内部主题绑定 private void gridLookupeditBind() { DataTable dt = new DataTable(); string strSql = "SELECT [ID],[subject],[htmlURL] FROM [OA].[dbo].2016-04-11 10:32:365132
0
-
原创 [DevExpress]Lookupedit之运用
private void cycletypeBind() { luecycletype.Properties.NullText = "--请选择--"; DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn("Text", typeof2016-04-11 10:29:162608
0
-
原创 [DevExpress]GridControl中的GridView内容打印
private void btnPrint_Click(object sender, EventArgs e) { PrintableComponentLink link = new PrintableComponentLink(new PrintingSystem()); link.Component =2016-04-03 22:33:146808
1
-
转载 [DevExpress]Devexpress中统一设置字体样式的方法
#region 设置默认字体、日期格式、汉化devDevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("Tahoma", 12);DevExpress.XtraEditors.WindowsFormsSettings.DefaultFont= new System.Drawing.Font("Tahoma", 12);DevExpress.XtraEditors.WindowsFormsSettings.De2020-05-28 17:11:33407
0
-
原创 [Bartender]TaskEngines.GetEnumerator Method
TaskEngines.GetEnumerator Method Gets the enumerator used to iterate through the collection.Namespace: Seagull.BarTender.PrintServerAssembly: Seagull.BarTender.Print (in Seagull.BarTender.Print.dl...2020-03-31 14:05:1298
0
-
原创 [EF] Any+批量新增+批量删除
private void Save() { try { using (var context = new OAContext()) { try { ...2020-03-27 09:37:36172
0
-
原创 [DevExpress]XtraTabControl 控件常用属性
属性内容Anchor控件绑定到的容器的边缘(Top,Bottom,Left,Right)HeaderLocation设置选项卡Tab头的位置LookAndFeel设置Form皮肤Margin指定此控件与另一控件的边距之间的距离Location控件左上角相对于其容器左上角的坐标Padding指定控件的内部间距SizeTabIndex...2020-03-10 22:16:43526
0
-
原创 [DevExpress]GridView 自定义行高
//设置GridView行高 private void gridView1_CalcRowHeight(object sender, DevExpress.XtraGrid.Views.Grid.RowHeightEventArgs e) { if (e.RowHandle >= 0) e.RowHei...2020-03-09 21:25:57788
0
-
转载 [DevExpress]纵向合并GridControl单元格控制
https://blog.csdn.net/jjhua/article/details/55271905https://blog.csdn.net/qq112212qq/article/details/826236642020-03-06 22:29:50208
0
-
转载 [DevExpress]添加非绑定列
using DevExpress.XtraGrid.Views.Base;using DevExpress.XtraGrid.Columns;private void Form1_Load(object sender, System.EventArgs e) {// ...gridControl1.ForceInitialize();// Create an unbound column...2020-03-01 19:23:11102
0
-
转载 [DevExpress]GridView扩展-行号_CustomDrawRowIndicator
public static class GridViewEx { public static void SetShowRowNo(this GridView gv) { Debug.Assert(gv != null); gv.OptionsView.ShowIndicator = true; ...2019-07-10 08:47:26784
0
-
原创 [DevExpress]GridControl 复合表头/表头分层设计
1.第一步将表格类型由默认的gridview变为bandedgridview,如图所示:然后 Click here to change view -> Convert to -> BandedGridView2 第二步骤 Run Designer 按照正常的手法添加Columns.3.点击 Bands 添加相应的Bands 列 Bands列可以进行随意的拖拽.然后...2019-05-15 08:34:531297
0
-
转载 [DevExpress] DevExpress中GridControl中添加编辑按钮行
DevExpress中GridControl中添加编辑按钮行以下为内容以图片居多1234表示点击顺序先新增一行 操作和新增数据行一样打开ColumnEdit 选择new ButtenEdit new上方会出现一个系统命名的button命名可以更改必须在下发name中更改 是行的name进入click事件就和普通的按钮一样了 可以编写自己的代码了一下代码是设计器中的代码 ...2018-12-11 08:44:112625
0
-
转载 [DevExpress]DevExpress GridView 代码添加按钮
1.1 创建一个RepositoryItemButtonEdit方法private RepositoryItemButtonEdit CreateRepositoryItemButtonEdit(Dictionary<object, string> dicButtons) { RepositoryItemButtonEdit repos...2018-08-07 08:27:002134
0
-
原创 [DevExpress]DateEdit年月
dateEnd.EditValue = System.DateTime.Now; //赋值现行年月 dateEnd.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;//禁止编辑 var for...2018-07-17 08:13:32872
0
-
转载 [DevExpress]程序中使用条形码二维码控件,以及进行报表打印处理
在很多业务系统里面,越来越多涉及到条形码、二维码的应用了,不管在Web界面还是WInform界面都需要处理很多物料相关的操作,甚至很多企业为了减少录入错误操作,为每个设备进行条形码、二维码的标签,直接在流程中进行扫描处理,仅仅在界面勾选一些处理选项即可,极大提高工作效率,降低出错的几率。本篇随笔介绍如何在基于WInform的DevExpress程序中对条形码、二维码的处理,包括界面展示,报表打印等2018-01-20 12:15:052264
0
-
转载 [DevExpress]TokenEdit控件使用
用到的基础数据:public class Product { public int Id { get; set; } public string Model { get; set; } public string Name { get; set; } } public class Entility { pri2017-11-19 07:41:51858
0
-
原创 [DevExpress]GridControl主从表显示
今天接到用户的需求,物流分摊费用保存在销货单主表中,但物流人员需要看到从表的销货明细包含哪些产品和数量。主从表设计:先看看效果吧:private void GetDataList() { string sb = GetSQL(); try { DBCon db = new DB2017-11-16 13:07:455742
1
-
原创 [DevExpress]设置列的时间格式
方法一设置DisplayFormatFormatString:gFormatType:DateTime方法二2016-04-06 15:14:575464
0
-
转载 [DevExpress] 设计Ribbon界面
Ribbon上包含以下一些元素,如图所示:元素对应API:ElementRibbon APIQuick Access ToolbarRibbonControl.ToolbarRibbonQuickAccessToolbar.ItemLinksApplication ButtonRibbonControl.ShowApplicationButtonRibbonControl.ApplicationB2016-04-03 13:56:4726940
1
-
转载 [DevExpress]skin窗体换肤
转自:http://www.evget.com/article/2014/10/10/21667.html最近在学习 DevExpress 这个控件,将窗体换肤的一些心得记录下来,分享给大家:【DXperience Universal Suite下载】1.添加引用:2.在ribbonPageGroup下新建个ribbonGalleryBarItem,并添加GalleryItemClick 事件:r2016-02-23 15:30:594483
0
-
原创 [DevExpress]DevExpress控件库-MarqueeProgressBarControl控件跟ProgressBarControl控件
新建一个窗体,拖个按钮和 progressBarControl控件(Devexpress)在按钮事件里private void simpleButton1_Click(object sender, EventArgs e) { //设置一个最小值 progressBarControl1.Properties.Minimum = 0;2016-02-22 21:52:534228
2
-
原创 [DevExpress]XtraTabControl右键添加关闭当前页、关闭其他页、全部关闭的实现
private void xtraTabControl_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { xtraTabControl.ContextMenuStrip = null;2016-02-22 16:50:415795
10
-
转载 [DevExpress]DXErrorProvider与DxValidationProvider的使用
1. DXErrorProvider:错误提示控件,用法类似于VS的winform控件中的ErrorProvider。下面为一个使用实例,验证文本框输入是否为数字:①.添加System.Text.RegularExpressions引用。②.在设计视图上拖一个textEdit控件textEdit1。③.验证输入是否为数字,不是显示错误提示。?12345678910111213public bool2016-02-19 12:43:434469
0
-
转载 [DevExpress]总结DevExpress10个使用技巧
DevExpress是非常主流的.NET控件,目前全世界和中国都用很多用户使用,不过由于是英文版,初次接触的同学可能会觉得困难,这里就总结DevExpress常见的10个使用技巧。1.TextEditor(barEditItem)取文本 string editValue = barEditItem1.EditValue.ToString(); //错误,返回null string editV2016-02-17 21:22:103271
0
-
原创 [DevExpress]DevExpress 中 汉化包 汉化方法
汉化成功!!2016-02-17 21:13:1611013
0
-
原创 [DevExpress]C#picturebox或者Dev控件 PictureEdit 按比例的缩放加载图片
方法一: 如果要加载的图片的长宽比不是太过失衡,1.可以改变picturebox的SizeMode属性为PictureBoxSizeMode.StretchImage,2.或者Dev控件 PictureEdit的SizeMode属性为Zoom。(zoom:缩放;clip剪短;stretchHorizontal:纵向拉伸;stretchVertical:横向拉伸;squeeze:压缩)这样加2016-02-17 12:36:347455
0
-
转载 [DevExpress]GridControl根据条件改变单元格/行颜色(Dev GridControl 单元格着色)
DevExpress控件-数据控件GridControl,有时我们需要根据特定条件改变符合条件的行或者单元格颜色达到突出显示目的,现在动起鼠标跟我一起操作吧,对的,要达到这个目的您甚至都不用动键盘.在对GridControl绑定好数据后:No.1:右键GridControl选择Run Designer;No.2:Appearance下Formatter Conditions点击Add,需要注意的是2016-04-03 20:49:5215584
3
-
原创 [DevExpress]GridControl分页的实现
添加两个组件:BindingNavigator和BindingSource代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Data.SqlClient;using System.Drawing;using System.2016-02-16 16:42:3519396
1
-
原创 [DevExpress]TreeListLookUpEdit带checkbox之经典运用
上代码: public partial class TreeListLookUpEdit : DevExpress.XtraEditors.XtraForm { private string _KeyName; public string KeyName { get { return lblKeyName.Te2016-02-22 10:34:286535
0
-
转载 [DevExpress]TreeList获取选中复选框数据列表
最近做项目新增光纤线路清查功能模块,思路和算法已经想好了,些代码时候居然在一个控件上纠结了好长的时间,虽然后来搞定了,但是好记性不然烂笔头,还是写下来,以后要用到的时候直接翻就行,帮助文档看得比较纠结,还是自己写的好。往往当时会用了,一段时间没用后再用的时候有要翻帮助文档或网上搜,纠结很久。我们学东西的时候一般不应该花过多精力和时间到控件或框架上,但是做项目要的是结果。记得有次去面试败在机试上,题2016-02-20 01:22:549055
0
-
原创 [DevExpress]treeList1背景色设置与自定义图标
用代码设置treeList1.BackColor = Color.Tranparent;后还要设置上图中Empty和Row等的BackColor = Tranparent,注意都不要设置BackColor2 = Color.Empty...2016-02-22 13:30:334994
2
-
原创 [DevExpress]TreeList控件的复选框
版权声明:作者:jiankunking 出处:http://blog.csdn.net/jiankunking 本文版权归作者和CSDN共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。 TreeList控件可以同时显示树结构和其他数据列,即在一个列上建立父子关系展开或收缩,同时还可以显示其他列的内容。 在TreeList中同时引入了 N2016-02-19 23:07:096270
0
-
原创 [Dev]DevExpress之treelist右键菜单实现
添加BarManager和popupMenu组件:设置popupMenu组件的Manager属性:右键点击popupMenu主键,点击Customize选项添加菜单代码:using System;using System.Collections.Generic;using System.Linq;using System.Data;using DevExpress.XtraTreeList2016-02-16 15:56:337475
1
-
转载 [DevExpress]TreeList显示[+] [-] 线条样式
预设显示下拉三角形样式,需要设置TreeList的两个皮肤属性:C# Code:tree.LookAndFeel.UseDefaultLookAndFeel = false;tree.LookAndFeel.UseWindowsXPTheme = true;//来源:C/S框架网(www.csframework.com) QQ:19808548982016-02-16 15:47:535899
0