随笔分类 -  DevExpress

摘要:新建一个cxStyleRepository,分别建立几种Styles,如cxgrid_odd,cxgrid_even,cxgrid_selection等,并设置好它们的背景色、字体属性等。 在cxGridDBTableView中,有一个Styles属性, 里面有Content,ContentEven 阅读全文
posted @ 2017-03-23 22:41 麦麦提敏 编辑
摘要:1:cxgrid是应该数据关联的控件,类似dbgrid。2:一般用来查阅表信息,如果要修改的话,直接在上面编辑或添加非常不方便通常要放几个EDit来对选中的记录进行编辑或添加记录。因为表一般都有主键,而用cxgrid很难控制。在post之前的主键检查工作。3:由于没有直接进行编辑,而post之前又要 阅读全文
posted @ 2017-03-15 01:26 麦麦提敏 编辑
摘要:cxGrid 增加序号 (非数据库绑定模式)-----------------------------------1.选在 adoQuery控件,鼠标右键菜单中选择Fields Editor2.在 adoQuery控件 Fields Editor 中鼠标右键菜单(1) Add all fields ... 阅读全文
posted @ 2014-07-09 13:21 麦麦提敏 编辑
摘要:delphi cxgrid 使用方法1.绑定数据方法cxGrid1DBTableView1.DataController.DataSource:=DataSource12.去掉"Drag a column header here to group by that column"方法cxGrid1DB... 阅读全文
posted @ 2014-07-09 12:41 麦麦提敏 编辑
摘要:如何使满足条件的数据显示不同的颜色?解决:var AYellowStyle: TcxStyle;procedure TForm1.FormCreate(Sender: TObject); begin //行颜色 AYellowStyle := TcxStyle.Create(Se... 阅读全文
posted @ 2014-07-09 12:30 麦麦提敏 编辑
摘要:Delphi Cxgrid获取选中行列,排序规则,当前正在编辑的单元格内的值cxGrid1DBTableView1.Controller.FocusedRowIndex 当前行号cxGrid1DBTableView1.Controller.FocusedRow 当前行cxGrid1DBTableVi... 阅读全文
posted @ 2014-06-17 00:40 麦麦提敏 编辑
摘要:在做AdoHelper实用程序的时候,我用了DevExpress的cxGrid控件.在此之前用的是dbgrid,考虑到不能把所有的数据都拉到本地,我用了动态生成的select top 500的命令.这样很笨.昨天忽然想到,可以看看控件是否支持只拉取一部分数据的,象access那样.GridView.... 阅读全文
posted @ 2014-06-12 10:40 麦麦提敏 编辑
摘要:CXGrid的使用技巧==========================================================================在主从TableView中根据主TableView得到对应的从TableViewvarADetailDC: TcxGridData... 阅读全文
posted @ 2014-04-18 13:15 麦麦提敏 编辑
摘要:使用cxGrid有一些时间了,在这里总结一下使用cxGrid的一些方法,希望给刚开始接触cxGrid的人一些帮助。1.简单介绍:cxGrid右下方的cxGrid1Level1是表示Grid表的层,cxGrid可以有多层,这相当于集合了PageControl的功能,而cxGrid1Level1右边的c... 阅读全文
posted @ 2014-04-18 13:08 麦麦提敏 编辑
摘要:CXGRID中的字段如何能以0.00的格式显示在CXGRID中如何让字段能以0.00的格式显示,我的字段是FLOAT类型,满意的马上给分!------解决方案--------------------可以 先把cxGrid中的你要设的那个列改为 properties = CalcEdit然后再设置 DisplayFormat = 0.00;-,0.00 即可 阅读全文
posted @ 2014-03-06 13:12 麦麦提敏 编辑
摘要:来源http://www.cnblogs.com/djcsch2001/archive/2010/07/19/1780573.html1. 去掉GroupBy栏cxGrid1DBTableView1.OptionsView.GroupByBox:=False;2. 在GRID footer 中加入sum(列)cxGrid1DBTableView1.OptionsView.footer:=Ture;然后在cxGRid1的customize中的summary 的footer.add需要合计的列kind= skSum(这个是设计的方法,以后会增加代码方法)3. 去掉cxgrid 中的过滤下拉箭头选择 阅读全文
posted @ 2014-01-14 13:12 麦麦提敏 编辑
摘要:cxGrid中列的GridMode属性 Lookup字段记录很大, GridMode=false时打开时很慢, GridMode = true 时非常快,但筛选、排序、汇总都不能用 gridmode=true 后,就无法自动实现排序. gridmode=false 模式下,数据全加载了,数据多地时候 阅读全文
posted @ 2013-05-28 19:38 麦麦提敏 编辑
摘要:CxGrid的使用说明cxgrid分组自动展开cxgrdbtblvwGrid1DBTableView1.DataController.Groups.FullExpandcxgrid取得默认字段cxgrdbtblvwGrid1DBTableView1.ClearItems;cxgrdbtblvwGrid1DBTableView1.DataController.CreateAllItems;(1)动态设置显示格式procedure SetDisplayFormat(ACtrlData: TClientDataSet; TbView: TcxGridDBTableView);var i: integ 阅读全文
posted @ 2013-05-28 18:57 麦麦提敏 编辑
摘要:cxGrid 知识点设置 TableView.OptionsView.HeaderAutoHeight 为 True 时栏目标题高度自动调整网格上选择了记录,当焦点移走时,看不到选择的记录,解决办法:修改 TableView 的属性,OptionsSelection->HideSelection 设为 False遍历选中记录:with ATableView.DataController dobeginVOldFocusedRecordIndex := FocusedRecordIndex;for VIndex := 0 to ATableView.Controller.SelectedR 阅读全文
posted @ 2013-05-28 18:55 麦麦提敏 编辑
摘要:技巧二:在内置右键菜单的后面增加菜单项 首先应在Form上加一个cxGridPopupMenu控件 以启用右键菜单 UseBuildInPopupMenus设为True procedure TFormItemList.FormCreate(Sender: TObject); var AMenu: TComponent; FMenuItem, FSubMenuItem: TMenuItem; begin AMenu := nil; if cxGridPopupMenu.BuiltInPopupMenus.Count = 0 then ... 阅读全文
posted @ 2013-05-28 18:51 麦麦提敏 编辑
摘要:使用TcxDBLookupComboBox需要设置以下属性: 1、DataBinding.DataSource:数据感知控件的数据源。 2、DataBinding.DataField:数据感知控件的连接字段。 3、properties.ListSource:TcxDBLookupComboBox下拉 阅读全文
posted @ 2013-05-20 12:31 麦麦提敏 编辑
摘要:cxGrid数据录入一、数据录入1 在TcxGridDBTableView中,设定属性 NewItemRow.Visible = True2 在cxgrid中输入数据怎样回车换行 在TcxGridDBTableView中 将属性OptionsBehavior.FocusFirstCellOnNewRecord = True OptionsBehavior.GoToNextCellOnEnter = True OptionsBehavior.FocusCellOnCycle = True就可以了.如果愿意也可以添加其自带的操作按钮,OptionsView.Navigator = True随后在N 阅读全文
posted @ 2013-05-18 21:06 麦麦提敏 编辑
摘要:cxgrid 双击 获取所点击行的内容创建view的 optionsselection->cellselect 设置为false ,才能触发双击事件案例:procedure TForm_Child_Archive.cxGrid1DBTableView1CellDblClick( Sender: TcxCustomGridTableView; ACellViewInfo: TcxGridTableDataCellViewInfo; AButton: TMouseButton; AShift: TShiftState; var AHandled: Boolean);begin3 ////取得 阅读全文
posted @ 2013-05-18 19:44 麦麦提敏 编辑
摘要:CxGrid用法使用cxGrid有一些时间了,在这里总结一下使用cxGrid的一些方法,希望给刚开始接触cxGrid的人一些帮助。1.简单介绍:cxGrid右下方的cxGrid1Level1是表示Grid表的层,cxGrid可以有多层,这相当于集合了PageControl的功能,而cxGrid1Level1右边的cxGrid1DBTableView1相当DBGrid一样。右击cxGrid1可以添加cxGrid1Level2,右击cxGrid1Level2,可以选择Create View , Add level 或者Delete Level。Add level可以增加子Level,Create 阅读全文
posted @ 2013-05-11 13:28 麦麦提敏 编辑
摘要:cxGrid使用技巧http://www.cnblogs.com/colincode/category/257535.html 阅读全文
posted @ 2013-05-06 17:17 麦麦提敏 编辑

点击右上角即可分享
微信分享提示